Class: PushbulletRuby::Ephemerable::Notification

Inherits:
PushbulletRuby::Ephemerable show all
Defined in:
lib/pushbullet_ruby/ephemerable/notifitation.rb

Instance Attribute Summary

Attributes inherited from PushbulletRuby::Ephemerable

#client, #device_identifier, #params, #user_identifier

Instance Method Summary collapse

Methods inherited from PushbulletRuby::Ephemerable

#initialize, push, #push

Constructor Details

This class inherits a constructor from PushbulletRuby::Ephemerable

Instance Method Details

#construct_payload(user_identifier, device_identifier) ⇒ Object



12
13
14
15
16
17
18
19
# File 'lib/pushbullet_ruby/ephemerable/notifitation.rb', line 12

def construct_payload(user_identifier, device_identifier)
  {
      source_user_iden: user_identifier,
      source_device_iden: device_identifier,
      package_name: 'com.pushbullet.android',
      type: 'mirror'
  }
end

#required_parametersObject



8
9
10
# File 'lib/pushbullet_ruby/ephemerable/notifitation.rb', line 8

def required_parameters
  [:title, :body]
end

#typeObject



4
5
6
# File 'lib/pushbullet_ruby/ephemerable/notifitation.rb', line 4

def type
  :push
end