Class: Bucketrb::ObjectStore::ObjectEntry

Inherits:
Struct
  • Object
show all
Defined in:
lib/bucketrb/object_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bucketObject

Returns the value of attribute bucket

Returns:

  • (Object)

    the current value of bucket



14
15
16
# File 'lib/bucketrb/object_store.rb', line 14

def bucket
  @bucket
end

#content_typeObject

Returns the value of attribute content_type

Returns:

  • (Object)

    the current value of content_type



14
15
16
# File 'lib/bucketrb/object_store.rb', line 14

def content_type
  @content_type
end

#etagObject

Returns the value of attribute etag

Returns:

  • (Object)

    the current value of etag



14
15
16
# File 'lib/bucketrb/object_store.rb', line 14

def etag
  @etag
end

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



14
15
16
# File 'lib/bucketrb/object_store.rb', line 14

def key
  @key
end

#last_modifiedObject

Returns the value of attribute last_modified

Returns:

  • (Object)

    the current value of last_modified



14
15
16
# File 'lib/bucketrb/object_store.rb', line 14

def last_modified
  @last_modified
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



14
15
16
# File 'lib/bucketrb/object_store.rb', line 14

def 
  @metadata
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



14
15
16
# File 'lib/bucketrb/object_store.rb', line 14

def path
  @path
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



14
15
16
# File 'lib/bucketrb/object_store.rb', line 14

def size
  @size
end

Instance Method Details

#quoted_etagObject



25
26
27
# File 'lib/bucketrb/object_store.rb', line 25

def quoted_etag
  %("#{etag}")
end