Class: Spritpreisrechner::OpeningHour
- Inherits:
-
Object
- Object
- Spritpreisrechner::OpeningHour
- Defined in:
- lib/spritpreisrechner/opening_hour.rb
Instance Attribute Summary collapse
-
#day ⇒ Object
readonly
Returns the value of attribute day.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(opening_hour) ⇒ OpeningHour
constructor
A new instance of OpeningHour.
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
#day ⇒ Object (readonly)
Returns the value of attribute day.
3 4 5 |
# File 'lib/spritpreisrechner/opening_hour.rb', line 3 def day @day end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
3 4 5 |
# File 'lib/spritpreisrechner/opening_hour.rb', line 3 def from @from end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
3 4 5 |
# File 'lib/spritpreisrechner/opening_hour.rb', line 3 def label @label end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
3 4 5 |
# File 'lib/spritpreisrechner/opening_hour.rb', line 3 def order @order end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
3 4 5 |
# File 'lib/spritpreisrechner/opening_hour.rb', line 3 def to @to end |