class Appwrite::Models::CollectionList
Attributes
collections[R]
total[R]
Public Class Methods
from(map:)
click to toggle source
# File lib/appwrite/models/collection_list.rb, line 17 def self.from(map:) CollectionList.new( total: map["total"], collections: map["collections"].map { |it| Collection.from(map: it) } ) end
new( total:, collections: )
click to toggle source
# File lib/appwrite/models/collection_list.rb, line 9 def initialize( total:, collections: ) @total = total @collections = collections end
Public Instance Methods
to_map()
click to toggle source
# File lib/appwrite/models/collection_list.rb, line 24 def to_map { "total": @total, "collections": @collections.map { |it| it.to_map } } end