Class: Schema

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



890
891
892
# File 'lib/chino_ruby.rb', line 890

def description
  @description
end

#insert_dateObject

Returns the value of attribute insert_date.



890
891
892
# File 'lib/chino_ruby.rb', line 890

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



890
891
892
# File 'lib/chino_ruby.rb', line 890

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



890
891
892
# File 'lib/chino_ruby.rb', line 890

def last_update
  @last_update
end

#repository_idObject

Returns the value of attribute repository_id.



890
891
892
# File 'lib/chino_ruby.rb', line 890

def repository_id
  @repository_id
end

#schema_idObject

Returns the value of attribute schema_id.



890
891
892
# File 'lib/chino_ruby.rb', line 890

def schema_id
  @schema_id
end

#structureObject

Returns the value of attribute structure.



890
891
892
# File 'lib/chino_ruby.rb', line 890

def structure
  @structure
end

Instance Method Details

#attributesObject



898
899
900
# File 'lib/chino_ruby.rb', line 898

def attributes
    instance_values
end

#attributes=(hash) ⇒ Object



892
893
894
895
896
# File 'lib/chino_ruby.rb', line 892

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

#getFieldsObject



902
903
904
# File 'lib/chino_ruby.rb', line 902

def getFields()
    structure['fields']
end