This will be version 0.0.1. Update response to provide minimal functionality

This commit is contained in:
Dan Milne
2019-09-07 22:02:02 +10:00
parent 17837ed02f
commit 9ffa32c705
3 changed files with 9 additions and 6 deletions

View File

@@ -2,7 +2,10 @@ require 'json'
module AwsPaa
class Response
def initialize()
attr_reader :status, :data
def initialize(response)
@status = response.status.to_s
@data = JSON.parse( response.body.to_s )
end
end
end