Class: Dropcam::Cuepoint
- Inherits:
-
Object
- Object
- Dropcam::Cuepoint
- Defined in:
- lib/dropcam/cuepoint.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#note ⇒ Object
readonly
Returns the value of attribute note.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(details) ⇒ Cuepoint
constructor
A new instance of Cuepoint.
Constructor Details
#initialize(details) ⇒ Cuepoint
Returns a new instance of Cuepoint.
4 5 6 7 8 9 |
# File 'lib/dropcam/cuepoint.rb', line 4 def initialize(details) @id = details["id"] @note = details["note"] @type = details["type"] @time = details["time"] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/dropcam/cuepoint.rb', line 3 def id @id end |
#note ⇒ Object (readonly)
Returns the value of attribute note.
3 4 5 |
# File 'lib/dropcam/cuepoint.rb', line 3 def note @note end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
3 4 5 |
# File 'lib/dropcam/cuepoint.rb', line 3 def time @time end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
3 4 5 |
# File 'lib/dropcam/cuepoint.rb', line 3 def type @type end |