Class: ChinoRuby::UserSchema

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



508
509
510
# File 'lib/chino_ruby/classes.rb', line 508

def description
  @description
end

#groupsObject

Returns the value of attribute groups.



508
509
510
# File 'lib/chino_ruby/classes.rb', line 508

def groups
  @groups
end

#insert_dateObject

Returns the value of attribute insert_date.



508
509
510
# File 'lib/chino_ruby/classes.rb', line 508

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



508
509
510
# File 'lib/chino_ruby/classes.rb', line 508

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



508
509
510
# File 'lib/chino_ruby/classes.rb', line 508

def last_update
  @last_update
end

#structureObject

Returns the value of attribute structure.



508
509
510
# File 'lib/chino_ruby/classes.rb', line 508

def structure
  @structure
end

#user_schema_idObject

Returns the value of attribute user_schema_id.



508
509
510
# File 'lib/chino_ruby/classes.rb', line 508

def user_schema_id
  @user_schema_id
end

Instance Method Details

#attributesObject



516
517
518
# File 'lib/chino_ruby/classes.rb', line 516

def attributes
  instance_values
end

#attributes=(hash) ⇒ Object



510
511
512
513
514
# File 'lib/chino_ruby/classes.rb', line 510

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

#getFieldsObject



520
521
522
# File 'lib/chino_ruby/classes.rb', line 520

def getFields()
  structure['fields']
end