Class: UserSchema

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Serializers::JSON
Defined in:
lib/chino_ruby.rb

Overview

——————————USER SCHEMAS———————————–#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



577
578
579
# File 'lib/chino_ruby.rb', line 577

def description
  @description
end

#groupsObject

Returns the value of attribute groups.



577
578
579
# File 'lib/chino_ruby.rb', line 577

def groups
  @groups
end

#insert_dateObject

Returns the value of attribute insert_date.



577
578
579
# File 'lib/chino_ruby.rb', line 577

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



577
578
579
# File 'lib/chino_ruby.rb', line 577

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



577
578
579
# File 'lib/chino_ruby.rb', line 577

def last_update
  @last_update
end

#structureObject

Returns the value of attribute structure.



577
578
579
# File 'lib/chino_ruby.rb', line 577

def structure
  @structure
end

#user_schema_idObject

Returns the value of attribute user_schema_id.



577
578
579
# File 'lib/chino_ruby.rb', line 577

def user_schema_id
  @user_schema_id
end

Instance Method Details

#attributesObject



585
586
587
# File 'lib/chino_ruby.rb', line 585

def attributes
    instance_values
end

#attributes=(hash) ⇒ Object



579
580
581
582
583
# File 'lib/chino_ruby.rb', line 579

def attributes=(hash)
    hash.each do |key, value|
        send("#{key}=", value)
    end
end

#getFieldsObject



589
590
591
# File 'lib/chino_ruby.rb', line 589

def getFields()
    structure['fields']
end