Class: Spritpreisrechner::OfferInformation
- Inherits:
-
Object
- Object
- Spritpreisrechner::OfferInformation
- Defined in:
- lib/spritpreisrechner/offer_information.rb
Instance Attribute Summary collapse
-
#self_service ⇒ Object
readonly
Returns the value of attribute self_service.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
-
#unattended ⇒ Object
readonly
Returns the value of attribute unattended.
Instance Method Summary collapse
-
#initialize(offer_information) ⇒ OfferInformation
constructor
A new instance of OfferInformation.
- #self_service? ⇒ Boolean
- #service? ⇒ Boolean
- #unattended? ⇒ Boolean
Constructor Details
#initialize(offer_information) ⇒ OfferInformation
Returns a new instance of OfferInformation.
5 6 7 8 9 |
# File 'lib/spritpreisrechner/offer_information.rb', line 5 def initialize(offer_information) @service = offer_information[:service] @self_service = offer_information[:selfService] @unattended = offer_information[:unattended] end |
Instance Attribute Details
#self_service ⇒ Object (readonly)
Returns the value of attribute self_service.
3 4 5 |
# File 'lib/spritpreisrechner/offer_information.rb', line 3 def self_service @self_service end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
3 4 5 |
# File 'lib/spritpreisrechner/offer_information.rb', line 3 def service @service end |
#unattended ⇒ Object (readonly)
Returns the value of attribute unattended.
3 4 5 |
# File 'lib/spritpreisrechner/offer_information.rb', line 3 def unattended @unattended end |
Instance Method Details
#self_service? ⇒ Boolean
15 16 17 |
# File 'lib/spritpreisrechner/offer_information.rb', line 15 def self_service? @self_service == true end |
#service? ⇒ Boolean
11 12 13 |
# File 'lib/spritpreisrechner/offer_information.rb', line 11 def service? @service == true end |
#unattended? ⇒ Boolean
19 20 21 |
# File 'lib/spritpreisrechner/offer_information.rb', line 19 def unattended? @unattended == true end |