Class: Blob

Inherits:
CheckValues show all
Includes:
ActiveModel::Serializers::JSON
Defined in:
lib/chino_ruby.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.



1458
1459
1460
# File 'lib/chino_ruby.rb', line 1458

def blob_id
  @blob_id
end

#bytesObject

Returns the value of attribute bytes.



1458
1459
1460
# File 'lib/chino_ruby.rb', line 1458

def bytes
  @bytes
end

#document_idObject

Returns the value of attribute document_id.



1458
1459
1460
# File 'lib/chino_ruby.rb', line 1458

def document_id
  @document_id
end

#md5Object

Returns the value of attribute md5.



1458
1459
1460
# File 'lib/chino_ruby.rb', line 1458

def md5
  @md5
end

#sha1Object

Returns the value of attribute sha1.



1458
1459
1460
# File 'lib/chino_ruby.rb', line 1458

def sha1
  @sha1
end

Instance Method Details

#attributesObject



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