Class: Caliper::Entities::Annotation::Annotation
- Inherits:
-
EntityBase
- Object
- Entity
- EntityBase
- Caliper::Entities::Annotation::Annotation
- Includes:
- Generatable
- Defined in:
- lib/caliper/entities/annotation/annotation.rb
Direct Known Subclasses
BookmarkAnnotation, HighlightAnnotation, SharedAnnotation, TagAnnotation
Instance Attribute Summary collapse
-
#annotated ⇒ Object
Returns the value of attribute annotated.
Attributes inherited from EntityBase
#dateCreated, #dateModified, #description, #extensions, #name
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize ⇒ Annotation
constructor
A new instance of Annotation.
Methods included from Jsonable
#eql?, #from_json, included, #to_json
Constructor Details
#initialize ⇒ Annotation
Returns a new instance of Annotation.
33 34 35 36 37 |
# File 'lib/caliper/entities/annotation/annotation.rb', line 33 def initialize super @type = Caliper::Entities::EntityType::ANNOTATION @annotated = nil end |
Instance Attribute Details
#annotated ⇒ Object
Returns the value of attribute annotated.
31 32 33 |
# File 'lib/caliper/entities/annotation/annotation.rb', line 31 def annotated @annotated end |