class Appwrite::Models::IndexList

Attributes

indexes[R]
total[R]

Public Class Methods

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

Public Instance Methods

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