Class: Caliper::Entities::Annotation::HighlightAnnotation
- Inherits:
-
Annotation
- Object
- Entity
- EntityBase
- Annotation
- Caliper::Entities::Annotation::HighlightAnnotation
- Defined in:
- lib/caliper/entities/annotation/highlight_annotation.rb
Instance Attribute Summary collapse
-
#selection ⇒ Object
Returns the value of attribute selection.
-
#selectionText ⇒ Object
Returns the value of attribute selectionText.
Attributes inherited from Annotation
Attributes inherited from EntityBase
#dateCreated, #dateModified, #description, #extensions, #name
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize ⇒ HighlightAnnotation
constructor
A new instance of HighlightAnnotation.
Methods included from Jsonable
#eql?, #from_json, included, #to_json
Constructor Details
#initialize ⇒ HighlightAnnotation
Returns a new instance of HighlightAnnotation.
31 32 33 34 35 36 |
# File 'lib/caliper/entities/annotation/highlight_annotation.rb', line 31 def initialize() super @type = Caliper::Entities::Annotation::AnnotationType::HIGHLIGHT_ANNOTATION @selectionText = nil @selection = {} end |
Instance Attribute Details
#selection ⇒ Object
Returns the value of attribute selection.
29 30 31 |
# File 'lib/caliper/entities/annotation/highlight_annotation.rb', line 29 def selection @selection end |
#selectionText ⇒ Object
Returns the value of attribute selectionText.
29 30 31 |
# File 'lib/caliper/entities/annotation/highlight_annotation.rb', line 29 def selectionText @selectionText end |