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