Class: BBNW::Billable

Inherits:
Object
  • Object
show all
Defined in:
lib/adapters/base/billable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBillable

Returns a new instance of Billable.



5
6
7
8
# File 'lib/adapters/base/billable.rb', line 5

def initialize
  @descriptions = []
  @total_time   = 0
end

Instance Attribute Details

#descriptionsObject

Returns the value of attribute descriptions.



3
4
5
# File 'lib/adapters/base/billable.rb', line 3

def descriptions
  @descriptions
end

#total_timeObject

Returns the value of attribute total_time.



3
4
5
# File 'lib/adapters/base/billable.rb', line 3

def total_time
  @total_time
end

Instance Method Details

#all_descriptions(header = "") ⇒ Object



10
11
12
13
14
# File 'lib/adapters/base/billable.rb', line 10

def all_descriptions(header = "")
  descriptions = "#{header}\n\n"
  descriptions+= @descriptions.join("\n\n")
  descriptions
end