Class: ChinoRuby::Schema

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



834
835
836
# File 'lib/chino_ruby/classes.rb', line 834

def description
  @description
end

#insert_dateObject

Returns the value of attribute insert_date.



834
835
836
# File 'lib/chino_ruby/classes.rb', line 834

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



834
835
836
# File 'lib/chino_ruby/classes.rb', line 834

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



834
835
836
# File 'lib/chino_ruby/classes.rb', line 834

def last_update
  @last_update
end

#repository_idObject

Returns the value of attribute repository_id.



834
835
836
# File 'lib/chino_ruby/classes.rb', line 834

def repository_id
  @repository_id
end

#schema_idObject

Returns the value of attribute schema_id.



834
835
836
# File 'lib/chino_ruby/classes.rb', line 834

def schema_id
  @schema_id
end

#structureObject

Returns the value of attribute structure.



834
835
836
# File 'lib/chino_ruby/classes.rb', line 834

def structure
  @structure
end

Instance Method Details

#attributesObject



842
843
844
# File 'lib/chino_ruby/classes.rb', line 842

def attributes
  instance_values
end

#attributes=(hash) ⇒ Object



836
837
838
839
840
# File 'lib/chino_ruby/classes.rb', line 836

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

#getFieldsObject



846
847
848
# File 'lib/chino_ruby/classes.rb', line 846

def getFields()
  structure['fields']
end