Class: DcAddressLookup::Response
- Inherits:
-
Object
- Object
- DcAddressLookup::Response
- Defined in:
- lib/dc_address_lookup/response.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(body) ⇒ Response
constructor
A new instance of Response.
- #location ⇒ Object
Constructor Details
#initialize(body) ⇒ Response
Returns a new instance of Response.
6 7 8 |
# File 'lib/dc_address_lookup/response.rb', line 6 def initialize(body) @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
4 5 6 |
# File 'lib/dc_address_lookup/response.rb', line 4 def body @body end |
Instance Method Details
#location ⇒ Object
10 11 12 |
# File 'lib/dc_address_lookup/response.rb', line 10 def location @location ||= Location.from_table(table) end |