Class: Blob
- Inherits:
-
CheckValues
- Object
- CheckValues
- Blob
- Includes:
- ActiveModel::Serializers::JSON
- Defined in:
- lib/chino_ruby.rb
Instance Attribute Summary collapse
-
#blob_id ⇒ Object
Returns the value of attribute blob_id.
-
#bytes ⇒ Object
Returns the value of attribute bytes.
-
#document_id ⇒ Object
Returns the value of attribute document_id.
-
#md5 ⇒ Object
Returns the value of attribute md5.
-
#sha1 ⇒ Object
Returns the value of attribute sha1.
Instance Method Summary collapse
Methods inherited from CheckValues
#check_boolean, #check_int, #check_json, #check_string
Instance Attribute Details
#blob_id ⇒ Object
Returns the value of attribute blob_id.
1458 1459 1460 |
# File 'lib/chino_ruby.rb', line 1458 def blob_id @blob_id end |
#bytes ⇒ Object
Returns the value of attribute bytes.
1458 1459 1460 |
# File 'lib/chino_ruby.rb', line 1458 def bytes @bytes end |
#document_id ⇒ Object
Returns the value of attribute document_id.
1458 1459 1460 |
# File 'lib/chino_ruby.rb', line 1458 def document_id @document_id end |
#md5 ⇒ Object
Returns the value of attribute md5.
1458 1459 1460 |
# File 'lib/chino_ruby.rb', line 1458 def md5 @md5 end |
#sha1 ⇒ Object
Returns the value of attribute sha1.
1458 1459 1460 |
# File 'lib/chino_ruby.rb', line 1458 def sha1 @sha1 end |
Instance Method Details
#attributes ⇒ Object
1466 1467 1468 |
# File 'lib/chino_ruby.rb', line 1466 def attributes instance_values end |
#attributes=(hash) ⇒ Object
1460 1461 1462 1463 1464 |
# File 'lib/chino_ruby.rb', line 1460 def attributes=(hash) hash.each do |key, value| send("#{key}=", value) end end |