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