Class: Warning
- Inherits:
-
Weatherzone::Resource
- Object
- Weatherzone::Resource
- Warning
- Includes:
- Weatherzone::Helpers::DateParser
- Defined in:
- lib/weatherzone/resources/warning.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Override id and type.
-
#type ⇒ Object
readonly
Override id and type.
Instance Method Summary collapse
Methods included from Weatherzone::Helpers::DateParser
Methods inherited from Weatherzone::Resource
has_attribute, has_elements, inherited, #settings
Instance Attribute Details
#id ⇒ Object (readonly)
Override id and type
11 12 13 |
# File 'lib/weatherzone/resources/warning.rb', line 11 def id @id end |
#type ⇒ Object (readonly)
Override id and type
11 12 13 |
# File 'lib/weatherzone/resources/warning.rb', line 11 def type @type end |
Instance Method Details
#eql?(other) ⇒ Boolean
17 18 19 |
# File 'lib/weatherzone/resources/warning.rb', line 17 def eql?(other) self.id == other.id end |
#hash ⇒ Object
13 14 15 |
# File 'lib/weatherzone/resources/warning.rb', line 13 def hash id.hash end |