Class: ChinoRuby::Document

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

Overview

——————————DOCUMENTS———————————–#

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content.



930
931
932
# File 'lib/chino_ruby/classes.rb', line 930

def content
  @content
end

#document_idObject

Returns the value of attribute document_id.



930
931
932
# File 'lib/chino_ruby/classes.rb', line 930

def document_id
  @document_id
end

#insert_dateObject

Returns the value of attribute insert_date.



930
931
932
# File 'lib/chino_ruby/classes.rb', line 930

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



930
931
932
# File 'lib/chino_ruby/classes.rb', line 930

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



930
931
932
# File 'lib/chino_ruby/classes.rb', line 930

def last_update
  @last_update
end

#repository_idObject

Returns the value of attribute repository_id.



930
931
932
# File 'lib/chino_ruby/classes.rb', line 930

def repository_id
  @repository_id
end

#schema_idObject

Returns the value of attribute schema_id.



930
931
932
# File 'lib/chino_ruby/classes.rb', line 930

def schema_id
  @schema_id
end

Instance Method Details

#attributesObject



942
943
944
# File 'lib/chino_ruby/classes.rb', line 942

def attributes
  instance_values
end

#attributes=(hash) ⇒ Object



932
933
934
935
936
937
938
939
940
# File 'lib/chino_ruby/classes.rb', line 932

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