Sha256: 2be0134540446fbb5d102da9ed4f145c4544324158d710cfbae24d9a432fd23d

Contents?: true

Size: 410 Bytes

Versions: 4

Compression:

Stored size: 410 Bytes

Contents

module DiscountNetwork
  class Result
    def self.where(search_id:, **attributes)
      DiscountNetwork.get_resource(
        ["searches", search_id, "results"].join("/"), attributes
      ).result
    end

    def self.find_by(search_id:, hotel_id:, **attributes)
      DiscountNetwork.get_resource(
        ["searches", search_id, "results", hotel_id].join("/"), attributes
      ).result
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
discountnetwork-0.1.3 lib/discountnetwork/result.rb
discountnetwork-0.1.2 lib/discountnetwork/result.rb
discountnetwork-0.1.1 lib/discountnetwork/result.rb
discountnetwork-0.1.0 lib/discountnetwork/result.rb