Class: Spritpreisrechner::OfferInformation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_serviceObject (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

#serviceObject (readonly)

Returns the value of attribute service.



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

def service
  @service
end

#unattendedObject (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

Returns:

  • (Boolean)


15
16
17
# File 'lib/spritpreisrechner/offer_information.rb', line 15

def self_service?
  @self_service == true
end

#service?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/spritpreisrechner/offer_information.rb', line 11

def service?
  @service == true
end

#unattended?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/spritpreisrechner/offer_information.rb', line 19

def unattended?
  @unattended == true
end