Class: Osm::Register::Field
Instance Attribute Summary collapse
-
#id ⇒ String
OSM identifier for the field.
-
#name ⇒ String
Human readable name for the field.
-
#tooltip ⇒ String
Tooltip for the field.
Instance Method Summary collapse
-
#<=>(another) ⇒ Object
Compare Field based on id then version.
-
#initialize ⇒ Object
constructor
Initialize a new RegisterField.
Methods inherited from Model
#<, #<=, #>, #>=, #between?, #changed_attributes, configure, #reset_changed_attributes, #to_i
Constructor Details
#initialize ⇒ Object
Initialize a new RegisterField
|
# File 'lib/osm/register.rb', line 157
|
Instance Attribute Details
#id ⇒ String
Returns OSM identifier for the field.
144 |
# File 'lib/osm/register.rb', line 144 attribute :id, :type => String |
#name ⇒ String
Returns Human readable name for the field.
144 |
# File 'lib/osm/register.rb', line 144 attribute :id, :type => String |
#tooltip ⇒ String
Returns Tooltip for the field.
144 |
# File 'lib/osm/register.rb', line 144 attribute :id, :type => String |
Instance Method Details
#<=>(another) ⇒ Object
Compare Field based on id then version
163 164 165 |
# File 'lib/osm/register.rb', line 163 def <=>(another) return self.id <=> another.try(:id) end |