class JustimmoClient::V1::RealtyCost

Public Instance Methods

*(other) click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 30
def *(other)
  amount * other
end
+(other) click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 34
def +(other)
  amount + ::Money.new(other)
end
-(other) click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 38
def -(other)
  amount - ::Money.new(other)
end
/(other) click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 26
def /(other)
  amount / other
end
as_json(options = nil)
Alias for: to_json
inspect() click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 64
def inspect
  "#<#{self.class} #{self}>"
end
to_f() click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 50
def to_f
  amount.to_f
end
to_h() click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 54
def to_h
  { currency: currency.id, amount: amount.to_f }
end
to_json(options = nil) click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 58
def to_json(options = nil)
  to_h.to_json(options)
end
Also aliased as: as_json
to_s() click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 46
def to_s
  amount.format
end
zero?() click to toggle source
# File lib/justimmo_client/api/v1/models/realty_cost.rb, line 42
def zero?
  amount.zero?
end