Class: TinCanApi::Documents::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/tin_can_api/documents/document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(&block) ⇒ Document

Returns a new instance of Document.



8
9
10
11
12
# File 'lib/tin_can_api/documents/document.rb', line 8

def initialize(&block)
  if block_given?
    block[self]
  end
end

Instance Attribute Details

#contentObject

Returns the value of attribute content.



6
7
8
# File 'lib/tin_can_api/documents/document.rb', line 6

def content
  @content
end

#content_typeObject

Returns the value of attribute content_type.



6
7
8
# File 'lib/tin_can_api/documents/document.rb', line 6

def content_type
  @content_type
end

#etagObject

Returns the value of attribute etag.



6
7
8
# File 'lib/tin_can_api/documents/document.rb', line 6

def etag
  @etag
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/tin_can_api/documents/document.rb', line 6

def id
  @id
end

#timestampObject

Returns the value of attribute timestamp.



6
7
8
# File 'lib/tin_can_api/documents/document.rb', line 6

def timestamp
  @timestamp
end