class Ingenico::Direct::SDK::Domain::LodgingData
@attr [String] check_in_date
Attributes
check_in_date[RW]
Public Instance Methods
from_hash(hash)
click to toggle source
Calls superclass method
Ingenico::Direct::SDK::DataObject#from_hash
# File lib/ingenico/direct/sdk/domain/lodging_data.rb, line 21 def from_hash(hash) super @check_in_date = hash['checkInDate'] if hash.key? 'checkInDate' end
to_h()
click to toggle source
@return (Hash)
Calls superclass method
Ingenico::Direct::SDK::DataObject#to_h
# File lib/ingenico/direct/sdk/domain/lodging_data.rb, line 15 def to_h hash = super hash['checkInDate'] = @check_in_date unless @check_in_date.nil? hash end