Class: PushbulletRuby::Ephemerable::Sms

Inherits:
PushbulletRuby::Ephemerable show all
Defined in:
lib/pushbullet_ruby/ephemerable/sms.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/sms.rb', line 12

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

#required_parametersObject



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

def required_parameters
  [:conversation_iden, :message]
end

#typeObject



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

def type
  :push
end