Class: Document

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

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content.



986
987
988
# File 'lib/chino_ruby.rb', line 986

def content
  @content
end

#document_idObject

Returns the value of attribute document_id.



986
987
988
# File 'lib/chino_ruby.rb', line 986

def document_id
  @document_id
end

#insert_dateObject

Returns the value of attribute insert_date.



986
987
988
# File 'lib/chino_ruby.rb', line 986

def insert_date
  @insert_date
end

#is_activeObject

Returns the value of attribute is_active.



986
987
988
# File 'lib/chino_ruby.rb', line 986

def is_active
  @is_active
end

#last_updateObject

Returns the value of attribute last_update.



986
987
988
# File 'lib/chino_ruby.rb', line 986

def last_update
  @last_update
end

#repository_idObject

Returns the value of attribute repository_id.



986
987
988
# File 'lib/chino_ruby.rb', line 986

def repository_id
  @repository_id
end

#schema_idObject

Returns the value of attribute schema_id.



986
987
988
# File 'lib/chino_ruby.rb', line 986

def schema_id
  @schema_id
end

Instance Method Details

#attributesObject



998
999
1000
# File 'lib/chino_ruby.rb', line 998

def attributes
    instance_values
end

#attributes=(hash) ⇒ Object



988
989
990
991
992
993
994
995
996
# File 'lib/chino_ruby.rb', line 988

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