class Appwrite::Models::Currency
Attributes
code[R]
decimal_digits[R]
name[R]
name_plural[R]
rounding[R]
symbol[R]
symbol_native[R]
Public Class Methods
from(map:)
click to toggle source
# File lib/appwrite/models/currency.rb, line 32 def self.from(map:) Currency.new( symbol: map["symbol"], name: map["name"], symbol_native: map["symbolNative"], decimal_digits: map["decimalDigits"], rounding: map["rounding"], code: map["code"], name_plural: map["namePlural"] ) end
new( symbol:, name:, symbol_native:, decimal_digits:, rounding:, code:, name_plural: )
click to toggle source
# File lib/appwrite/models/currency.rb, line 14 def initialize( symbol:, name:, symbol_native:, decimal_digits:, rounding:, code:, name_plural: ) @symbol = symbol @name = name @symbol_native = symbol_native @decimal_digits = decimal_digits @rounding = rounding @code = code @name_plural = name_plural end
Public Instance Methods
to_map()
click to toggle source
# File lib/appwrite/models/currency.rb, line 44 def to_map { "symbol": @symbol, "name": @name, "symbolNative": @symbol_native, "decimalDigits": @decimal_digits, "rounding": @rounding, "code": @code, "namePlural": @name_plural } end