Class: GetGeo::Printer

Inherits:
Object
  • Object
show all
Defined in:
lib/get_geo/printer.rb

Direct Known Subclasses

CLI

Defined Under Namespace

Classes: CLI

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Printer

Returns a new instance of Printer.



4
5
6
7
# File 'lib/get_geo/printer.rb', line 4

def initialize(data)
  @data = data
  set_output_string
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



2
3
4
# File 'lib/get_geo/printer.rb', line 2

def data
  @data
end

#output_stringObject (readonly)

Returns the value of attribute output_string.



2
3
4
# File 'lib/get_geo/printer.rb', line 2

def output_string
  @output_string
end

Instance Method Details



9
10
11
# File 'lib/get_geo/printer.rb', line 9

def print
  output_string
end