Class: ConfBuilder::Lightning_talk

Inherits:
Talk
  • Object
show all
Defined in:
lib/lightning_talk.rb

Instance Attribute Summary

Attributes inherited from Talk

#duration, #duration_unit, #speaker, #title

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Lightning_talk

Returns a new instance of Lightning_talk.



7
8
9
10
11
12
# File 'lib/lightning_talk.rb', line 7

def initialize(params)
  super(params)
  @duration = 5
  @duration_unit = 'minute'
  self
end

Instance Method Details

#to_sObject



14
15
16
# File 'lib/lightning_talk.rb', line 14

def to_s
  "#{@title} lightning" 
end