Class: Kentaa::Api::Resources::Location
- Inherits:
-
Object
- Object
- Kentaa::Api::Resources::Location
- Defined in:
- lib/kentaa/api/resources/location.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #city ⇒ Object
-
#initialize(data) ⇒ Location
constructor
A new instance of Location.
- #latitude ⇒ Object
- #longitude ⇒ Object
- #street ⇒ Object
- #zip_code ⇒ Object
Constructor Details
#initialize(data) ⇒ Location
Returns a new instance of Location.
9 10 11 |
# File 'lib/kentaa/api/resources/location.rb', line 9 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/kentaa/api/resources/location.rb', line 7 def data @data end |
Instance Method Details
#city ⇒ Object
21 22 23 |
# File 'lib/kentaa/api/resources/location.rb', line 21 def city data[:city] end |
#latitude ⇒ Object
25 26 27 |
# File 'lib/kentaa/api/resources/location.rb', line 25 def latitude data[:latitude] end |
#longitude ⇒ Object
29 30 31 |
# File 'lib/kentaa/api/resources/location.rb', line 29 def longitude data[:longitude] end |
#street ⇒ Object
17 18 19 |
# File 'lib/kentaa/api/resources/location.rb', line 17 def street data[:street] end |
#zip_code ⇒ Object
13 14 15 |
# File 'lib/kentaa/api/resources/location.rb', line 13 def zip_code data[:zip_code] end |