Class: Caliper::Entities::Annotation::HighlightAnnotation

Inherits:
Annotation show all
Defined in:
lib/caliper/entities/annotation/highlight_annotation.rb

Instance Attribute Summary collapse

Attributes inherited from Annotation

#annotated

Attributes inherited from EntityBase

#dateCreated, #dateModified, #description, #extensions, #name

Attributes inherited from Entity

#context, #id, #type

Instance Method Summary collapse

Methods included from Jsonable

#eql?, #from_json, included, #to_json

Constructor Details

#initializeHighlightAnnotation

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

#selectionObject

Returns the value of attribute selection.



29
30
31
# File 'lib/caliper/entities/annotation/highlight_annotation.rb', line 29

def selection
  @selection
end

#selectionTextObject

Returns the value of attribute selectionText.



29
30
31
# File 'lib/caliper/entities/annotation/highlight_annotation.rb', line 29

def selectionText
  @selectionText
end