Class: TogglBillable::Formatter::Base
- Inherits:
-
Object
- Object
- TogglBillable::Formatter::Base
- Defined in:
- lib/toggl_billable/formatter/base.rb
Constant Summary collapse
- NO_CLIENT_KEY =
'NO_CLIENT'
Instance Attribute Summary collapse
-
#billable ⇒ Object
Returns the value of attribute billable.
-
#data ⇒ Object
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(report, options = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(report, options = {}) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/toggl_billable/formatter/base.rb', line 8 def initialize(report, = {}) @data = report['data'] @billable = {} @no_client_key = [:default_client] || NO_CLIENT_KEY end |
Instance Attribute Details
#billable ⇒ Object
Returns the value of attribute billable.
4 5 6 |
# File 'lib/toggl_billable/formatter/base.rb', line 4 def billable @billable end |
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/toggl_billable/formatter/base.rb', line 4 def data @data end |