Class: Osm::Evening::EveningActivity
- Inherits:
-
Object
- Object
- Osm::Evening::EveningActivity
- Defined in:
- lib/osm/evening.rb
Instance Attribute Summary collapse
-
#activity_id ⇒ Fixnum
readonly
The activity being done.
-
#notes ⇒ String
readonly
Notes relevant to doing this activity on this evening.
-
#title ⇒ String
readonly
The activity’s title.
Instance Method Summary collapse
-
#initialize(data) ⇒ EveningActivity
constructor
Initialize a new EveningActivity using the hash returned by the API call.
Constructor Details
#initialize(data) ⇒ EveningActivity
Initialize a new EveningActivity using the hash returned by the API call
116 117 118 119 120 |
# File 'lib/osm/evening.rb', line 116 def initialize(data) @activity_id = Osm::to_i_or_nil(data['activityid']) @title = data['title'] @notes = data['notes'] end |
Instance Attribute Details
#activity_id ⇒ Fixnum (readonly)
Returns the activity being done.
107 108 109 |
# File 'lib/osm/evening.rb', line 107 def activity_id @activity_id end |
#notes ⇒ String (readonly)
Returns notes relevant to doing this activity on this evening.
107 108 109 |
# File 'lib/osm/evening.rb', line 107 def notes @notes end |
#title ⇒ String (readonly)
Returns the activity’s title.
107 108 109 |
# File 'lib/osm/evening.rb', line 107 def title @title end |