class Appwrite::Models::Preferences
Public Class Methods
from(map:)
click to toggle source
# File lib/appwrite/models/preferences.rb, line 13 def self.from(map:) Preferences.new( data: map["data"] ) end
new( data: )
click to toggle source
# File lib/appwrite/models/preferences.rb, line 7 def initialize( data: ) @data = data end
Public Instance Methods
convert_to(from_json)
click to toggle source
# File lib/appwrite/models/preferences.rb, line 25 def convert_to(from_json) from_json.call(data) end
to_map()
click to toggle source
# File lib/appwrite/models/preferences.rb, line 19 def to_map { "data": @data } end