Class: Portera::Timeslot
- Inherits:
-
Struct
- Object
- Struct
- Portera::Timeslot
- Defined in:
- lib/portera/event.rb
Instance Attribute Summary collapse
-
#participants ⇒ Object
Returns the value of attribute participants.
-
#range ⇒ Object
Returns the value of attribute range.
Instance Method Summary collapse
-
#to_s ⇒ Object
temporary, TODO use views/presenters instead.
Instance Attribute Details
#participants ⇒ Object
Returns the value of attribute participants
79 80 81 |
# File 'lib/portera/event.rb', line 79 def participants @participants end |
#range ⇒ Object
Returns the value of attribute range
79 80 81 |
# File 'lib/portera/event.rb', line 79 def range @range end |
Instance Method Details
#to_s ⇒ Object
temporary, TODO use views/presenters instead
82 83 84 85 86 |
# File 'lib/portera/event.rb', line 82 def to_s ["#{self.range}", self.participants.empty? ? nil : " #{self.participants.to_a.join("\n ")}" ].compact.join("\n") end |