mirror of
https://github.com/dkam/paapi.git
synced 2025-12-28 15:14:52 +00:00
This will be version 0.0.1. Update response to provide minimal functionality
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user