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.



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

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



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

def response
  @response
end

Instance Method Details

#fetch(root) ⇒ Object



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

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