class JustimmoClient::V1::RealtyPrice
Public Instance Methods
additional()
click to toggle source
TODO: add more additional costs
# File lib/justimmo_client/api/v1/models/realty_price.rb, line 65 def additional [operating_cost].map(&:to_f).sum end
get()
click to toggle source
# File lib/justimmo_client/api/v1/models/realty_price.rb, line 69 def get @purcase || @rent end
on_demand?()
click to toggle source
# File lib/justimmo_client/api/v1/models/realty_price.rb, line 49 def on_demand? return on_demand if on_demand return purcase.zero? if purcase return rent.zero? if rent true end
purcase?()
click to toggle source
# File lib/justimmo_client/api/v1/models/realty_price.rb, line 60 def purcase? !purcase.nil? end
rent?()
click to toggle source
# File lib/justimmo_client/api/v1/models/realty_price.rb, line 56 def rent? !rent.nil? end
to_f()
click to toggle source
# File lib/justimmo_client/api/v1/models/realty_price.rb, line 73 def to_f get.to_f end
to_s()
click to toggle source
# File lib/justimmo_client/api/v1/models/realty_price.rb, line 77 def to_s on_demand? ? translate("price.on_demand") : get.to_s end