Class: Renshuu::Presence::Schedule
- Defined in:
- lib/renshuu/models/presence.rb
Overview
Model class for schedule presence.
Instance Attribute Summary collapse
- #has_word ⇒ Boolean (also: #has_word?) readonly
- #name ⇒ String readonly
- #sched_id ⇒ String (also: #schedule_id) readonly
Instance Method Summary collapse
-
#schedule ⇒ Renshuu::Schedule
Retrieves the schedule associated with this presence item.
Instance Attribute Details
#has_word ⇒ Boolean (readonly) Also known as: has_word?
22 |
# File 'lib/renshuu/models/presence.rb', line 22 attribute :has_word, Types::Params::Bool |
#name ⇒ String (readonly)
18 |
# File 'lib/renshuu/models/presence.rb', line 18 attribute :name, Types::String |
#sched_id ⇒ String (readonly) Also known as: schedule_id
13 |
# File 'lib/renshuu/models/presence.rb', line 13 attribute :sched_id, Types::String |
Instance Method Details
#schedule ⇒ Renshuu::Schedule
Retrieves the schedule associated with this presence item.
31 32 33 |
# File 'lib/renshuu/models/presence.rb', line 31 def schedule Renshuu::Schedule.get(schedule_id) end |