class Ingenico::Connect::SDK::Domain::Definitions::LodgingRoom
@attr [String] daily_room_rate
@attr [String] daily_room_rate_currency_code
@attr [String] daily_room_tax_amount
@attr [String] daily_room_tax_amount_currency_code
@attr [Integer] number_of_nights_at_room_rate
@attr [String] room_location
@attr [String] room_number
@attr [String] type_of_bed
@attr [String] type_of_room
Attributes
daily_room_rate[RW]
daily_room_rate_currency_code[RW]
daily_room_tax_amount[RW]
daily_room_tax_amount_currency_code[RW]
number_of_nights_at_room_rate[RW]
room_location[RW]
room_number[RW]
type_of_bed[RW]
type_of_room[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Connect::SDK::DataObject#from_hash
# File lib/ingenico/connect/sdk/domain/definitions/lodging_room.rb, line 55 def from_hash(hash) super if hash.has_key? 'dailyRoomRate' @daily_room_rate = hash['dailyRoomRate'] end if hash.has_key? 'dailyRoomRateCurrencyCode' @daily_room_rate_currency_code = hash['dailyRoomRateCurrencyCode'] end if hash.has_key? 'dailyRoomTaxAmount' @daily_room_tax_amount = hash['dailyRoomTaxAmount'] end if hash.has_key? 'dailyRoomTaxAmountCurrencyCode' @daily_room_tax_amount_currency_code = hash['dailyRoomTaxAmountCurrencyCode'] end if hash.has_key? 'numberOfNightsAtRoomRate' @number_of_nights_at_room_rate = hash['numberOfNightsAtRoomRate'] end if hash.has_key? 'roomLocation' @room_location = hash['roomLocation'] end if hash.has_key? 'roomNumber' @room_number = hash['roomNumber'] end if hash.has_key? 'typeOfBed' @type_of_bed = hash['typeOfBed'] end if hash.has_key? 'typeOfRoom' @type_of_room = hash['typeOfRoom'] end end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Connect::SDK::DataObject#to_h
# File lib/ingenico/connect/sdk/domain/definitions/lodging_room.rb, line 41 def to_h hash = super hash['dailyRoomRate'] = @daily_room_rate unless @daily_room_rate.nil? hash['dailyRoomRateCurrencyCode'] = @daily_room_rate_currency_code unless @daily_room_rate_currency_code.nil? hash['dailyRoomTaxAmount'] = @daily_room_tax_amount unless @daily_room_tax_amount.nil? hash['dailyRoomTaxAmountCurrencyCode'] = @daily_room_tax_amount_currency_code unless @daily_room_tax_amount_currency_code.nil? hash['numberOfNightsAtRoomRate'] = @number_of_nights_at_room_rate unless @number_of_nights_at_room_rate.nil? hash['roomLocation'] = @room_location unless @room_location.nil? hash['roomNumber'] = @room_number unless @room_number.nil? hash['typeOfBed'] = @type_of_bed unless @type_of_bed.nil? hash['typeOfRoom'] = @type_of_room unless @type_of_room.nil? hash end