class Appwrite::Models::Team

Attributes

date_created[R]
id[R]
name[R]
total[R]

Public Class Methods

from(map:) click to toggle source
# File lib/appwrite/models/team.rb, line 23
def self.from(map:)
    Team.new(
        id: map["$id"],
        name: map["name"],
        date_created: map["dateCreated"],
        total: map["total"]
    )
end
new( id:, name:, date_created:, total: ) click to toggle source
# File lib/appwrite/models/team.rb, line 11
def initialize(
    id:,
    name:,
    date_created:,
    total:
)
    @id = id
    @name = name
    @date_created = date_created
    @total = total
end

Public Instance Methods

to_map() click to toggle source
# File lib/appwrite/models/team.rb, line 32
def to_map
    {
        "$id": @id,
        "name": @name,
        "dateCreated": @date_created,
        "total": @total
    }
end