Class: Gigbot::Formatters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/gigbot/formatters/base.rb

Direct Known Subclasses

Full, Short

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gig) ⇒ Base

Returns a new instance of Base.



4
5
6
# File 'lib/gigbot/formatters/base.rb', line 4

def initialize(gig)
  @gig = gig
end

Instance Attribute Details

#gigObject (readonly)

Returns the value of attribute gig.



8
9
10
# File 'lib/gigbot/formatters/base.rb', line 8

def gig
  @gig
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/gigbot/formatters/base.rb', line 10

def to_s
  gig.to_s
end