Class: Osm::Meeting::Activity
- Inherits:
-
Object
- Object
- Osm::Meeting::Activity
- Includes:
- ActiveAttr::Model, ActiveModel::MassAssignmentSecurity
- Defined in:
- lib/osm/meeting.rb,
lib/osm/meeting.rb
Overview
Ensure the constant exists for the validators
Instance Attribute Summary collapse
-
#activity_id ⇒ Fixnum
The activity being done.
-
#notes ⇒ String
Notes relevant to doing this activity on this meeting.
-
#title ⇒ String
The activity’s title.
Instance Method Summary collapse
-
#<=>(another) ⇒ Object
Compare Activity based on title then activity_id.
-
#initialize ⇒ Object
constructor
Initialize a new Meeting::Activity.
Constructor Details
#initialize ⇒ Object
Initialize a new Meeting::Activity
|
# File 'lib/osm/meeting.rb', line 359
|
Instance Attribute Details
#activity_id ⇒ Fixnum
Returns the activity being done.
348 |
# File 'lib/osm/meeting.rb', line 348 attribute :activity_id, :type => Integer |
#notes ⇒ String
Returns notes relevant to doing this activity on this meeting.
348 |
# File 'lib/osm/meeting.rb', line 348 attribute :activity_id, :type => Integer |
#title ⇒ String
Returns the activity’s title.
348 |
# File 'lib/osm/meeting.rb', line 348 attribute :activity_id, :type => Integer |
Instance Method Details
#<=>(another) ⇒ Object
Compare Activity based on title then activity_id
365 366 367 368 369 |
# File 'lib/osm/meeting.rb', line 365 def <=>(another) result = self.title <=> another.try(:title) result = self.activity_id <=> another.try(:activity_id) if result == 0 return result end |