Class: Roqua::Healthy::A19::ResponseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/roqua/healthy/a19/response_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ResponseParser

Returns a new instance of ResponseParser.



9
10
11
# File 'lib/roqua/healthy/a19/response_parser.rb', line 9

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



7
8
9
# File 'lib/roqua/healthy/a19/response_parser.rb', line 7

def response
  @response
end

Instance Method Details

#fetch(root) ⇒ Object



13
14
15
# File 'lib/roqua/healthy/a19/response_parser.rb', line 13

def fetch(root)
  parsed_body[root] || {}
end