Class: Ohmage::Annotation
- Inherits:
-
Object
- Object
- Ohmage::Annotation
- Defined in:
- lib/ohmage/entity/annotation.rb
Instance Attribute Summary collapse
- #annotation_id ⇒ String (also: #id, #urn) readonly
- #author ⇒ String readonly
- #text ⇒ String readonly
- #time ⇒ String readonly
- #timezone ⇒ String readonly
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Annotation
constructor
A new instance of Annotation.
Constructor Details
#initialize(attrs = {}) ⇒ Annotation
Returns a new instance of Annotation.
8 9 10 11 12 |
# File 'lib/ohmage/entity/annotation.rb', line 8 def initialize(attrs = {}) attrs.keys[0].each do |k, v| instance_variable_set("@#{k}", v) end end |
Instance Attribute Details
#annotation_id ⇒ String (readonly) Also known as: id, urn
4 5 6 |
# File 'lib/ohmage/entity/annotation.rb', line 4 def annotation_id @annotation_id end |
#author ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/annotation.rb', line 4 def @author end |
#text ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/annotation.rb', line 4 def text @text end |
#time ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/annotation.rb', line 4 def time @time end |
#timezone ⇒ String (readonly)
4 5 6 |
# File 'lib/ohmage/entity/annotation.rb', line 4 def timezone @timezone end |