class MyJohnDeereApi::Model::Flag
Attributes
geometry[R]
notes[R]
Public Instance Methods
archived?()
click to toggle source
Since the archived attribute is boolean, we reflect this in the method name instead of using a standard attr_reader.
# File lib/my_john_deere_api/model/flag.rb, line 11 def archived? @archived end
proximity_alert_enabled?()
click to toggle source
Since the proximity_alert_enabled attribute is boolean, we reflect this in the method name instead of using a standard attr_reader.
# File lib/my_john_deere_api/model/flag.rb, line 19 def proximity_alert_enabled? @proximity_alert_enabled end
Private Instance Methods
expected_record_type()
click to toggle source
# File lib/my_john_deere_api/model/flag.rb, line 32 def expected_record_type 'Flag' end
map_attributes(record)
click to toggle source
# File lib/my_john_deere_api/model/flag.rb, line 25 def map_attributes(record) @notes = record['notes'] @geometry =JSON.parse(record['geometry']) @proximity_alert_enabled = record['proximityAlertEnabled'] @archived = record['archived'] end