Class: MarkdownExport

Inherits:
Object
  • Object
show all
Defined in:
lib/doing/markdown_export.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(page_title, items, totals) ⇒ MarkdownExport

Returns a new instance of MarkdownExport.



7
8
9
10
11
# File 'lib/doing/markdown_export.rb', line 7

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.



5
6
7
# File 'lib/doing/markdown_export.rb', line 5

def items
  @items
end

#page_titleObject

Returns the value of attribute page_title.



5
6
7
# File 'lib/doing/markdown_export.rb', line 5

def page_title
  @page_title
end

#totalsObject

Returns the value of attribute totals.



5
6
7
# File 'lib/doing/markdown_export.rb', line 5

def totals
  @totals
end

Instance Method Details

#get_bindingObject



13
14
15
# File 'lib/doing/markdown_export.rb', line 13

def get_binding
  binding()
end