Class: TinCanApi::Documents::Document
- Inherits:
-
Object
- Object
- TinCanApi::Documents::Document
- Defined in:
- lib/tin_can_api/documents/document.rb
Direct Known Subclasses
ActivityProfileDocument, AgentProfileDocument, StateDocument
Instance Attribute Summary collapse
-
#content ⇒ Object
Returns the value of attribute content.
-
#content_type ⇒ Object
Returns the value of attribute content_type.
-
#etag ⇒ Object
Returns the value of attribute etag.
-
#id ⇒ Object
Returns the value of attribute id.
-
#timestamp ⇒ Object
Returns the value of attribute timestamp.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Document
constructor
A new instance of Document.
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
#content ⇒ Object
Returns the value of attribute content.
6 7 8 |
# File 'lib/tin_can_api/documents/document.rb', line 6 def content @content end |
#content_type ⇒ Object
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 |
#etag ⇒ Object
Returns the value of attribute etag.
6 7 8 |
# File 'lib/tin_can_api/documents/document.rb', line 6 def etag @etag end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/tin_can_api/documents/document.rb', line 6 def id @id end |
#timestamp ⇒ Object
Returns the value of attribute timestamp.
6 7 8 |
# File 'lib/tin_can_api/documents/document.rb', line 6 def @timestamp end |