Class: ChinoRuby::Blob

Inherits:
CheckValues show all
Includes:
ActiveModel::Serializers::JSON
Defined in:
lib/chino_ruby/classes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CheckValues

#check_boolean, #check_int, #check_json, #check_string

Instance Attribute Details

#blob_idObject

Returns the value of attribute blob_id.



1464
1465
1466
# File 'lib/chino_ruby/classes.rb', line 1464

def blob_id
  @blob_id
end

#bytesObject

Returns the value of attribute bytes.



1464
1465
1466
# File 'lib/chino_ruby/classes.rb', line 1464

def bytes
  @bytes
end

#document_idObject

Returns the value of attribute document_id.



1464
1465
1466
# File 'lib/chino_ruby/classes.rb', line 1464

def document_id
  @document_id
end

#md5Object

Returns the value of attribute md5.



1464
1465
1466
# File 'lib/chino_ruby/classes.rb', line 1464

def md5
  @md5
end

#sha1Object

Returns the value of attribute sha1.



1464
1465
1466
# File 'lib/chino_ruby/classes.rb', line 1464

def sha1
  @sha1
end

Instance Method Details

#attributesObject



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