class Appwrite::Models::ExecutionList

Attributes

executions[R]
total[R]

Public Class Methods

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

Public Instance Methods

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