Class: Parser::Presenter

Inherits:
Object
  • Object
show all
Defined in:
lib/parser/presenter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, options = {}) ⇒ Presenter

Returns a new instance of Presenter.



7
8
9
10
# File 'lib/parser/presenter.rb', line 7

def initialize(data, options = {})
  @data = data
  @options = options
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



5
6
7
# File 'lib/parser/presenter.rb', line 5

def data
  @data
end

#optionsObject

Returns the value of attribute options.



5
6
7
# File 'lib/parser/presenter.rb', line 5

def options
  @options
end

Instance Method Details

#callObject



12
13
14
# File 'lib/parser/presenter.rb', line 12

def call
  output_formatted_data
end