Class: Device::NotificationEvent
- Inherits:
-
Object
- Object
- Device::NotificationEvent
- Defined in:
- lib/device/notification_event.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#callback ⇒ Object
readonly
Returns the value of attribute callback.
-
#coalesce ⇒ Object
readonly
Returns the value of attribute coalesce.
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#ltime ⇒ Object
readonly
Returns the value of attribute ltime.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#parameters ⇒ Object
readonly
Returns the value of attribute parameters.
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
-
#values ⇒ Object
readonly
Returns the value of attribute values.
Instance Method Summary collapse
-
#initialize(values) ⇒ NotificationEvent
constructor
A new instance of NotificationEvent.
- #type ⇒ Object
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def body @body end |
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def callback @callback end |
#coalesce ⇒ Object (readonly)
Returns the value of attribute coalesce.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def coalesce @coalesce end |
#event ⇒ Object (readonly)
Returns the value of attribute event.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def event @event end |
#ltime ⇒ Object (readonly)
Returns the value of attribute ltime.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def ltime @ltime end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def @message end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def name @name end |
#parameters ⇒ Object (readonly)
Returns the value of attribute parameters.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def parameters @parameters end |
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def payload @payload end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/device/notification_event.rb', line 3 def value @value end |
#values ⇒ Object (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
#type ⇒ Object
10 11 12 |
# File 'lib/device/notification_event.rb', line 10 def type @event end |