Class: Spritpreisrechner::OpeningHour

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opening_hour) ⇒ OpeningHour

Returns a new instance of OpeningHour.



5
6
7
8
9
10
11
# File 'lib/spritpreisrechner/opening_hour.rb', line 5

def initialize(opening_hour)
  @day = opening_hour[:day]
  @label = opening_hour[:label]
  @order = opening_hour[:order]
  @from = opening_hour[:from]
  @to = opening_hour[:to]
end

Instance Attribute Details

#dayObject (readonly)

Returns the value of attribute day.



3
4
5
# File 'lib/spritpreisrechner/opening_hour.rb', line 3

def day
  @day
end

#fromObject (readonly)

Returns the value of attribute from.



3
4
5
# File 'lib/spritpreisrechner/opening_hour.rb', line 3

def from
  @from
end

#labelObject (readonly)

Returns the value of attribute label.



3
4
5
# File 'lib/spritpreisrechner/opening_hour.rb', line 3

def label
  @label
end

#orderObject (readonly)

Returns the value of attribute order.



3
4
5
# File 'lib/spritpreisrechner/opening_hour.rb', line 3

def order
  @order
end

#toObject (readonly)

Returns the value of attribute to.



3
4
5
# File 'lib/spritpreisrechner/opening_hour.rb', line 3

def to
  @to
end