Price

A variant price at a specific occupancy tier.

A variant price at a specific occupancy tier. Returned by variant, extra, and calendar price methods. Use fractional or per_person_fractional with the money filter for display.

Properties

fractional

The total price for this occupancy tier, in the subunit of the currency.

Returns: Integer — e.g. 1950 for $19.50.

occupancy

The occupancy this price applies to — the guest count the total price is for.

Returns: Integer

per_person_fractional

The per-person price for this occupancy tier, in the subunit of the currency.

Returns: Integer — e.g. 1000 for a $20.00 total price at occupancy 2.

price

Deprecated

Use fractional instead. This name is still returned by AvailabilityDayDrop price lists.

The total price for this occupancy tier, in the subunit of the currency.

Returns: Integer — e.g. 1950 for $19.50.

See also: AvailabilityDayDrop#prices

to_s

String representation of the price. When returned from a parent drop's price method, renders a humanised price string (e.g. "$75 Per Person").

Returns: String

On this page