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