Class: ChronopostFuelAdjustmentCoefficients

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeChronopostFuelAdjustmentCoefficients

Returns a new instance of ChronopostFuelAdjustmentCoefficients.



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

def initialize
  @time_period, @routier, @aerien = extracted_content
end

Instance Attribute Details

#time_periodObject (readonly)

Returns the value of attribute time_period.



7
8
9
# File 'lib/chronopost_fuel_adjustment_coefficients.rb', line 7

def time_period
  @time_period
end

Instance Method Details

#air_multiplierObject



13
14
15
# File 'lib/chronopost_fuel_adjustment_coefficients.rb', line 13

def air_multiplier
  format_multiplier @aerien
end

#road_multiplierObject



17
18
19
# File 'lib/chronopost_fuel_adjustment_coefficients.rb', line 17

def road_multiplier
  format_multiplier @routier
end

#urlObject



21
22
23
# File 'lib/chronopost_fuel_adjustment_coefficients.rb', line 21

def url
  'https://www.chronopost.fr/fr/surcharge-carburant'
end