Class: Munchsrb::Gather::Starter
- Inherits:
-
Object
- Object
- Munchsrb::Gather::Starter
- Defined in:
- lib/munchsrb/gather/starter.rb
Overview
Starter starts gather information of Munch’s Burger.
Instance Attribute Summary collapse
-
#scenario ⇒ Object
readonly
Returns the value of attribute scenario.
Instance Method Summary collapse
-
#initialize ⇒ Starter
constructor
A new instance of Starter.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Starter
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
#scenario ⇒ Object (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
#run ⇒ Object
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 |