Class: ChinoRuby::Document
- Inherits:
-
Object
- Object
- ChinoRuby::Document
- Includes:
- ActiveModel::Serializers::JSON
- Defined in:
- lib/chino_ruby/classes.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.
930 931 932 |
# File 'lib/chino_ruby/classes.rb', line 930 def content @content end |
#document_id ⇒ Object
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_date ⇒ Object
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_active ⇒ Object
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_update ⇒ Object
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_id ⇒ Object
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_id ⇒ Object
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
#attributes ⇒ Object
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 |