Sha256: 708ec4848e2bbf27ae4e58085fb59752ada6385a6988ce842f3eeaff2d305f09
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module Access class Hotel include Access::MuchMeta def initialize(values) @used_fields = [] set_up_methods(values) set_values(values) end def self.search(options = {}) Access::Api.new.search_hotels options end def self.find(hotel_key, options = {}) Access::Api.new.find_hotel hotel_key, options end def self.process_batch(chunk) chunk.map { |hotel| new(hotel) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
access-2.1.2 | lib/access/hotel.rb |