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