Class: MyJohnDeereApi::Model::Flag

Inherits:
Base
  • Object
show all
Defined in:
lib/my_john_deere_api/model/flag.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #id, #links, #record, #record_type

Instance Method Summary collapse

Methods inherited from Base

#accessor, #initialize

Constructor Details

This class inherits a constructor from MyJohnDeereApi::Model::Base

Instance Attribute Details

#geometryObject (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

#notesObject (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.

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


19
20
21
# File 'lib/my_john_deere_api/model/flag.rb', line 19

def proximity_alert_enabled?
  @proximity_alert_enabled
end