Class: Munchsrb::Gather::Starter

Inherits:
Object
  • Object
show all
Defined in:
lib/munchsrb/gather/starter.rb

Overview

Starter starts gather information of Munch’s Burger.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStarter

Returns a new instance of Starter.



11
12
13
14
# File 'lib/munchsrb/gather/starter.rb', line 11

def initialize
  Munchsrb::Gather.init
  @scenario = ::Munchsrb::Gather::Scenario.new
end

Instance Attribute Details

#scenarioObject (readonly)

Returns the value of attribute scenario.



9
10
11
# File 'lib/munchsrb/gather/starter.rb', line 9

def scenario
  @scenario
end

Instance Method Details

#runObject



16
17
18
19
20
21
# File 'lib/munchsrb/gather/starter.rb', line 16

def run
  scenario.execute
  @scenario.details
rescue Munchsrb::GatherError => e
  print("Gather Error occurred! #{e.message}\n")
end