Class: MyJohnDeereApi::Model::Flag
- Defined in:
- lib/my_john_deere_api/model/flag.rb
Instance Attribute Summary collapse
-
#geometry ⇒ Object
readonly
Returns the value of attribute geometry.
-
#notes ⇒ Object
readonly
Returns the value of attribute notes.
Attributes inherited from Base
#client, #id, #links, #record_type
Instance Method Summary collapse
-
#archived? ⇒ Boolean
Since the archived attribute is boolean, we reflect this in the method name instead of using a standard attr_reader.
-
#proximity_alert_enabled? ⇒ Boolean
Since the proximity_alert_enabled attribute is boolean, we reflect this in the method name instead of using a standard attr_reader.
Methods inherited from Base
Constructor Details
This class inherits a constructor from MyJohnDeereApi::Model::Base
Instance Attribute Details
#geometry ⇒ Object (readonly)
Returns the value of attribute geometry.
5 6 7 |
# File 'lib/my_john_deere_api/model/flag.rb', line 5 def geometry @geometry end |
#notes ⇒ Object (readonly)
Returns the value of attribute notes.
5 6 7 |
# File 'lib/my_john_deere_api/model/flag.rb', line 5 def notes @notes end |
Instance Method Details
#archived? ⇒ Boolean
Since the archived attribute is boolean, we reflect this in the method name instead of using a standard attr_reader.
11 12 13 |
# File 'lib/my_john_deere_api/model/flag.rb', line 11 def archived? @archived end |
#proximity_alert_enabled? ⇒ Boolean
Since the proximity_alert_enabled attribute is boolean, we reflect this in the method name instead of using a standard attr_reader.
19 20 21 |
# File 'lib/my_john_deere_api/model/flag.rb', line 19 def proximity_alert_enabled? @proximity_alert_enabled end |