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