Class: WeatherLink::RecordType
- Inherits:
-
Struct
- Object
- Struct
- WeatherLink::RecordType
- Defined in:
- lib/weatherlink.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#system ⇒ Object
Returns the value of attribute system.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
52 53 54 |
# File 'lib/weatherlink.rb', line 52 def id @id end |
#name ⇒ Object
Returns the value of attribute name
52 53 54 |
# File 'lib/weatherlink.rb', line 52 def name @name end |
#system ⇒ Object
Returns the value of attribute system
52 53 54 |
# File 'lib/weatherlink.rb', line 52 def system @system end |
#type ⇒ Object
Returns the value of attribute type
52 53 54 |
# File 'lib/weatherlink.rb', line 52 def type @type end |
Instance Method Details
#archive? ⇒ Boolean
61 62 63 |
# File 'lib/weatherlink.rb', line 61 def archive? type == :archive end |
#current_conditions? ⇒ Boolean
57 58 59 |
# File 'lib/weatherlink.rb', line 57 def current_conditions? type == :current_conditions end |
#description ⇒ Object
53 54 55 |
# File 'lib/weatherlink.rb', line 53 def description "#{system.name} - #{name}" end |
#health? ⇒ Boolean
65 66 67 |
# File 'lib/weatherlink.rb', line 65 def health? type == :health end |