Class: Device::NotificationEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/device/notification_event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values) ⇒ NotificationEvent

Returns a new instance of NotificationEvent.



5
6
7
8
# File 'lib/device/notification_event.rb', line 5

def initialize(values)
  @values = values
  parse(values)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def body
  @body
end

#callbackObject (readonly)

Returns the value of attribute callback.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def callback
  @callback
end

#coalesceObject (readonly)

Returns the value of attribute coalesce.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def coalesce
  @coalesce
end

#eventObject (readonly)

Returns the value of attribute event.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def event
  @event
end

#ltimeObject (readonly)

Returns the value of attribute ltime.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def ltime
  @ltime
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def message
  @message
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def name
  @name
end

#parametersObject (readonly)

Returns the value of attribute parameters.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def parameters
  @parameters
end

#payloadObject (readonly)

Returns the value of attribute payload.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def payload
  @payload
end

#valueObject (readonly)

Returns the value of attribute value.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def value
  @value
end

#valuesObject (readonly)

Returns the value of attribute values.



3
4
5
# File 'lib/device/notification_event.rb', line 3

def values
  @values
end

Instance Method Details

#typeObject



10
11
12
# File 'lib/device/notification_event.rb', line 10

def type
  @event
end