class RakutenWebService::Travel::Hotel

Public Class Methods

attribute_names() click to toggle source
# File lib/rakuten_web_service/travel/hotel.rb, line 23
def self.attribute_names
  %w(hotelBasicInfo hotelRatingInfo hotelDetailInfo hotelFacilitiesInfo hotelPolicyInfo hotelOtherInfo)
end
new(params) click to toggle source
# File lib/rakuten_web_service/travel/hotel.rb, line 16
def initialize(params)
  @params = {}
  self.class.attribute_names.each_with_index do |key, i|
    @params[key] = params[i][key] if params[i]
  end
end