struct Money::Currency::Rate
- Money::Currency::Rate
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
money/currency/json.crmoney/currency/rate.cr
Constructors
Instance Method Summary
- #clone
- #copy_with(from _from = @from, to _to = @to, value _value = @value)
- #from : Currency
- #to : Currency
-
#to_big_d : BigDecimal
Returns conversion rate
#value
asBigDecimal
object. -
#to_f64 : Float64
Returns conversion rate
#value
asFloat64
. - #to_i64 : Int64
- #to_json(json : JSON::Builder)
- #to_money(bank = nil) : Money
-
#to_s(io : IO) : Nil
Same as
#inspect(io)
. - #value : Int64