Class: ChinoRuby::Blob
- Inherits:
-
CheckValues
- Object
- CheckValues
- ChinoRuby::Blob
- Includes:
- ActiveModel::Serializers::JSON
- Defined in:
- lib/chino_ruby/classes.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.
1464 1465 1466 |
# File 'lib/chino_ruby/classes.rb', line 1464 def blob_id @blob_id end |
#bytes ⇒ Object
Returns the value of attribute bytes.
1464 1465 1466 |
# File 'lib/chino_ruby/classes.rb', line 1464 def bytes @bytes end |
#document_id ⇒ Object
Returns the value of attribute document_id.
1464 1465 1466 |
# File 'lib/chino_ruby/classes.rb', line 1464 def document_id @document_id end |
#md5 ⇒ Object
Returns the value of attribute md5.
1464 1465 1466 |
# File 'lib/chino_ruby/classes.rb', line 1464 def md5 @md5 end |
#sha1 ⇒ Object
Returns the value of attribute sha1.
1464 1465 1466 |
# File 'lib/chino_ruby/classes.rb', line 1464 def sha1 @sha1 end |
Instance Method Details
#attributes ⇒ Object
1472 1473 1474 |
# File 'lib/chino_ruby/classes.rb', line 1472 def attributes instance_values end |
#attributes=(hash) ⇒ Object
1466 1467 1468 1469 1470 |
# File 'lib/chino_ruby/classes.rb', line 1466 def attributes=(hash) hash.each do |key, value| send("#{key}=", value) end end |