Class: Suitcase::NightlyRate

Inherits:
Object
  • Object
show all
Defined in:
lib/suitcase/hotel/nightly_rate.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (NightlyRate) initialize(info)



5
6
7
8
9
# File 'lib/suitcase/hotel/nightly_rate.rb', line 5

def initialize(info)
  promo = info["@promo"]
  promo = info["@rate"]
  promo = info["@baseRate"]
end

Instance Attribute Details

- (Object) base_rate

Returns the value of attribute base_rate



3
4
5
# File 'lib/suitcase/hotel/nightly_rate.rb', line 3

def base_rate
  @base_rate
end

- (Object) promo

Returns the value of attribute promo



3
4
5
# File 'lib/suitcase/hotel/nightly_rate.rb', line 3

def promo
  @promo
end

- (Object) rate

Returns the value of attribute rate



3
4
5
# File 'lib/suitcase/hotel/nightly_rate.rb', line 3

def rate
  @rate
end