class Appwrite::Models::TeamList

Attributes

teams[R]
total[R]

Public Class Methods

from(map:) click to toggle source
# File lib/appwrite/models/team_list.rb, line 17
def self.from(map:)
    TeamList.new(
        total: map["total"],
        teams: map["teams"].map { |it| Team.from(map: it) }
    )
end
new( total:, teams: ) click to toggle source
# File lib/appwrite/models/team_list.rb, line 9
def initialize(
    total:,
    teams:
)
    @total = total
    @teams = teams
end

Public Instance Methods

to_map() click to toggle source
# File lib/appwrite/models/team_list.rb, line 24
def to_map
    {
        "total": @total,
        "teams": @teams.map { |it| it.to_map }
    }
end