Class: SWD::Response
- Inherits:
-
Object
- Object
- SWD::Response
- Defined in:
- lib/swd/response.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
Returns the value of attribute location.
-
#locations ⇒ Object
Returns the value of attribute locations.
-
#raw ⇒ Object
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(hash) ⇒ Response
Returns a new instance of Response.
5 6 7 8 9 |
# File 'lib/swd/response.rb', line 5 def initialize(hash) @locations = hash[:locations] @location = @locations.first @raw = hash end |
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
3 4 5 |
# File 'lib/swd/response.rb', line 3 def location @location end |
#locations ⇒ Object
Returns the value of attribute locations.
3 4 5 |
# File 'lib/swd/response.rb', line 3 def locations @locations end |
#raw ⇒ Object
Returns the value of attribute raw.
3 4 5 |
# File 'lib/swd/response.rb', line 3 def raw @raw end |