Module: Fuel
- Defined in:
- lib/fuel.rb,
lib/fuel/version.rb
Defined Under Namespace
Classes: Error
Constant Summary collapse
- BURN_TIME =
48- REFUEL_TIME =
12- VERSION =
"0.2.0"
Class Method Summary collapse
-
.configuration ⇒ Object
Config #####################.
- .configure {|configuration| ... } ⇒ Object
Class Method Details
.configuration ⇒ Object
Config #####################
13 14 15 16 17 18 19 20 |
# File 'lib/fuel.rb', line 13 def self.configuration @configuration ||= OpenStruct.new( { burn_time: ENV.fetch("FUEL_BURN_TIME",BURN_TIME).to_i, refuel_time: ENV.fetch("FUEL_REFUEL_TIME",REFUEL_TIME).to_i } ) end |
.configure {|configuration| ... } ⇒ Object
22 23 24 |
# File 'lib/fuel.rb', line 22 def self.configure yield(configuration) end |