Class: Lita::Standups::Models::Standup

Inherits:
Base
  • Object
show all
Includes:
Ohm::Callbacks, Ohm::DataTypes, Ohm::Timestamps
Defined in:
lib/lita/standups/models/standup.rb

Instance Method Summary collapse

Methods inherited from Base

redis

Instance Method Details

#descriptionObject



21
22
23
24
25
26
27
28
# File 'lib/lita/standups/models/standup.rb', line 21

def description
  [
    "ID: #{id}",
    "Name: #{name}",
    "Questions:",
    questions.join("\n")
  ].join("\n")
end

#summaryObject



17
18
19
# File 'lib/lita/standups/models/standup.rb', line 17

def summary
  "#{name} (ID: #{id}) - #{questions.size} question(s)"
end