Class: Tagger::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/tagger/generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(events, platform) ⇒ Generator

Returns a new instance of Generator.



5
6
7
8
# File 'lib/tagger/generator.rb', line 5

def initialize(events, platform)
  @events = events
  @platform = platform
end

Instance Attribute Details

#eventsObject

Returns the value of attribute events.



3
4
5
# File 'lib/tagger/generator.rb', line 3

def events
  @events
end

#platformObject

Returns the value of attribute platform.



3
4
5
# File 'lib/tagger/generator.rb', line 3

def platform
  @platform
end

Instance Method Details

#generate(output_location) ⇒ Object



10
11
12
# File 'lib/tagger/generator.rb', line 10

def generate(output_location)
  File.write("#{output_location}/#{output_file_name}", output)
end