Class: Document
- Inherits:
-
Object
- Object
- Document
- Includes:
- ActiveModel::Serializers::JSON
- Defined in:
- lib/chino_ruby.rb
Overview
——————————DOCUMENTS———————————–#
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#document_id ⇒ Object
Returns the value of attribute document_id.
-
#insert_date ⇒ Object
Returns the value of attribute insert_date.
-
#is_active ⇒ Object
Returns the value of attribute is_active.
-
#last_update ⇒ Object
Returns the value of attribute last_update.
-
#repository_id ⇒ Object
Returns the value of attribute repository_id.
-
#schema_id ⇒ Object
Returns the value of attribute schema_id.
Instance Method Summary collapse
Instance Attribute Details
#content ⇒ Object
Returns the value of attribute content.
986 987 988 |
# File 'lib/chino_ruby.rb', line 986 def content @content end |
#document_id ⇒ Object
Returns the value of attribute document_id.
986 987 988 |
# File 'lib/chino_ruby.rb', line 986 def document_id @document_id end |
#insert_date ⇒ Object
Returns the value of attribute insert_date.
986 987 988 |
# File 'lib/chino_ruby.rb', line 986 def insert_date @insert_date end |
#is_active ⇒ Object
Returns the value of attribute is_active.
986 987 988 |
# File 'lib/chino_ruby.rb', line 986 def is_active @is_active end |
#last_update ⇒ Object
Returns the value of attribute last_update.
986 987 988 |
# File 'lib/chino_ruby.rb', line 986 def last_update @last_update end |
#repository_id ⇒ Object
Returns the value of attribute repository_id.
986 987 988 |
# File 'lib/chino_ruby.rb', line 986 def repository_id @repository_id end |
#schema_id ⇒ Object
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
#attributes ⇒ Object
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 |