class Appwrite::Models::AttributeFloat
Attributes
array[R]
default[R]
key[R]
max[R]
min[R]
required[R]
status[R]
type[R]
Public Class Methods
from(map:)
click to toggle source
# File lib/appwrite/models/attribute_float.rb, line 35 def self.from(map:) AttributeFloat.new( key: map["key"], type: map["type"], status: map["status"], required: map["required"], array: map["array"], min: map["min"], max: map["max"], default: map["default"] ) end
new( key:, type:, status:, required:, array: , min: , max: , default: )
click to toggle source
# File lib/appwrite/models/attribute_float.rb, line 15 def initialize( key:, type:, status:, required:, array: , min: , max: , default: ) @key = key @type = type @status = status @required = required @array = array @min = min @max = max @default = default end
Public Instance Methods
to_map()
click to toggle source
# File lib/appwrite/models/attribute_float.rb, line 48 def to_map { "key": @key, "type": @type, "status": @status, "required": @required, "array": @array, "min": @min, "max": @max, "default": @default } end