Class: HotelBeds::Model::SearchResult
- Inherits:
-
Object
- Object
- HotelBeds::Model::SearchResult
- Includes:
- HotelBeds::Model
- Defined in:
- lib/hotel_beds/model/search_result.rb
Instance Method Summary collapse
-
#price ⇒ Object
returns the total price of all the rooms collectively.
Methods included from HotelBeds::Model
Instance Method Details
#price ⇒ Object
returns the total price of all the rooms collectively
14 15 16 |
# File 'lib/hotel_beds/model/search_result.rb', line 14 def price rooms.map(&:price).inject(BigDecimal.new("0.0"), :+) end |