Class: Rave::Models::Annotation::User

Inherits:
Rave::Models::Annotation show all
Defined in:
lib/models/annotation.rb

Overview

(Abstract)

Direct Known Subclasses

Document, Focus, Selection

Defined Under Namespace

Classes: Document, Focus, Selection

Constant Summary

Constants inherited from Rave::Models::Annotation

JAVA_CLASS

Constants included from Rave::Mixins::ObjectFactory

Rave::Mixins::ObjectFactory::WILDCARD

Instance Attribute Summary

Attributes included from Rave::Mixins::ObjectFactory

#type

Instance Method Summary collapse

Methods inherited from Rave::Models::Annotation

#name, #range, #to_json, #value

Methods included from Rave::Mixins::ObjectFactory

included

Constructor Details

#initialize(session_id, value, range) ⇒ User

Returns a new instance of User.



130
131
132
# File 'lib/models/annotation.rb', line 130

def initialize(session_id, value, range)
  super
end

Instance Method Details

#session_idObject

Session ID for the user annotation.



125
126
127
128
# File 'lib/models/annotation.rb', line 125

def session_id # :nodoc:
  name =~ %r!/([^/]+)$!
  $1
end