Class: Rave::Models::Annotation::User
- Inherits:
-
Rave::Models::Annotation
- Object
- Rave::Models::Annotation
- Rave::Models::Annotation::User
- Defined in:
- lib/models/annotation.rb
Overview
(Abstract)
Defined Under Namespace
Classes: Document, Focus, Selection
Constant Summary
Constants inherited from Rave::Models::Annotation
Constants included from Rave::Mixins::ObjectFactory
Rave::Mixins::ObjectFactory::WILDCARD
Instance Attribute Summary
Attributes included from Rave::Mixins::ObjectFactory
Instance Method Summary collapse
-
#initialize(session_id, value, range) ⇒ User
constructor
A new instance of User.
-
#session_id ⇒ Object
Session ID for the user annotation.
Methods inherited from Rave::Models::Annotation
#name, #range, #to_json, #value
Methods included from Rave::Mixins::ObjectFactory
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_id ⇒ Object
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 |