Class: DiscountNetwork::Result
- Inherits:
-
Object
- Object
- DiscountNetwork::Result
- Defined in:
- lib/discountnetwork/result.rb
Class Method Summary collapse
Class Method Details
.find_by(search_id:, hotel_id:, **attributes) ⇒ Object
9 10 11 12 13 |
# File 'lib/discountnetwork/result.rb', line 9 def self.find_by(search_id:, hotel_id:, **attributes) DiscountNetwork.get_resource( ["searches", search_id, "results", hotel_id].join("/"), attributes ).result end |
.where(search_id:, **attributes) ⇒ Object
3 4 5 6 7 |
# File 'lib/discountnetwork/result.rb', line 3 def self.where(search_id:, **attributes) DiscountNetwork.get_resource( ["searches", search_id, "results"].join("/"), attributes ).result end |