Class: Doing::DayOneRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/doing/plugins/export/dayone_export.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page_title, items, totals) ⇒ DayOneRenderer

Returns a new instance of DayOneRenderer.



13
14
15
16
17
# File 'lib/doing/plugins/export/dayone_export.rb', line 13

def initialize(page_title, items, totals)
  @page_title = page_title
  @items = items
  @totals = totals
end

Instance Attribute Details

#itemsObject

Returns the value of attribute items.



11
12
13
# File 'lib/doing/plugins/export/dayone_export.rb', line 11

def items
  @items
end

#page_titleObject

Returns the value of attribute page_title.



11
12
13
# File 'lib/doing/plugins/export/dayone_export.rb', line 11

def page_title
  @page_title
end

#totalsObject

Returns the value of attribute totals.



11
12
13
# File 'lib/doing/plugins/export/dayone_export.rb', line 11

def totals
  @totals
end

Instance Method Details

#get_bindingObject



19
20
21
# File 'lib/doing/plugins/export/dayone_export.rb', line 19

def get_binding
  binding()
end