Class: Dropcam::Cuepoint

Inherits:
Object
  • Object
show all
Defined in:
lib/dropcam/cuepoint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/dropcam/cuepoint.rb', line 3

def id
  @id
end

#noteObject (readonly)

Returns the value of attribute note.



3
4
5
# File 'lib/dropcam/cuepoint.rb', line 3

def note
  @note
end

#timeObject (readonly)

Returns the value of attribute time.



3
4
5
# File 'lib/dropcam/cuepoint.rb', line 3

def time
  @time
end

#typeObject (readonly)

Returns the value of attribute type.



3
4
5
# File 'lib/dropcam/cuepoint.rb', line 3

def type
  @type
end