class Appwrite::Models::CurrencyList
Attributes
currencies[R]
total[R]
Public Class Methods
from(map:)
click to toggle source
# File lib/appwrite/models/currency_list.rb, line 17 def self.from(map:) CurrencyList.new( total: map["total"], currencies: map["currencies"].map { |it| Currency.from(map: it) } ) end
new( total:, currencies: )
click to toggle source
# File lib/appwrite/models/currency_list.rb, line 9 def initialize( total:, currencies: ) @total = total @currencies = currencies end
Public Instance Methods
to_map()
click to toggle source
# File lib/appwrite/models/currency_list.rb, line 24 def to_map { "total": @total, "currencies": @currencies.map { |it| it.to_map } } end