class Appwrite::Models::Index

Attributes

attributes[R]
key[R]
orders[R]
status[R]
type[R]

Public Class Methods

from(map:) click to toggle source
# File lib/appwrite/models/index.rb, line 26
def self.from(map:)
    Index.new(
        key: map["key"],
        type: map["type"],
        status: map["status"],
        attributes: map["attributes"],
        orders: map["orders"]
    )
end
new( key:, type:, status:, attributes:, orders: ) click to toggle source
# File lib/appwrite/models/index.rb, line 12
def initialize(
    key:,
    type:,
    status:,
    attributes:,
    orders:
)
    @key = key
    @type = type
    @status = status
    @attributes = attributes
    @orders = orders
end

Public Instance Methods

to_map() click to toggle source
# File lib/appwrite/models/index.rb, line 36
def to_map
    {
        "key": @key,
        "type": @type,
        "status": @status,
        "attributes": @attributes,
        "orders": @orders
    }
end