Class: Waqi::City
- Inherits:
-
Struct
- Object
- Struct
- Waqi::City
- Defined in:
- lib/waqi/models/city.rb
Instance Attribute Summary collapse
-
#geo ⇒ Object
Returns the value of attribute geo.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Attribute Details
#geo ⇒ Object
Returns the value of attribute geo
2 3 4 |
# File 'lib/waqi/models/city.rb', line 2 def geo @geo end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/waqi/models/city.rb', line 2 def name @name end |
#url ⇒ Object
Returns the value of attribute url
2 3 4 |
# File 'lib/waqi/models/city.rb', line 2 def url @url end |
Class Method Details
.parse(hash) ⇒ Object
3 4 5 |
# File 'lib/waqi/models/city.rb', line 3 def self.parse(hash) new(*hash.values_at(*self.members)) end |