Class: PushWoosher::Push
- Inherits:
-
Base
- Object
- Base
- PushWoosher::Push
show all
- Defined in:
- lib/push_woosher/push.rb
Constant Summary
Constants inherited
from Base
Base::BASE_HOST, Base::BASE_PATH, Base::PROTOCOL
Instance Method Summary
collapse
Methods inherited from Base
#config, #connection, #post_action
Instance Method Details
#post ⇒ Object
15
16
17
18
19
20
|
# File 'lib/push_woosher/push.rb', line 15
def post
post_action(
path: resource_path,
request_hash: request_hash
)
end
|
#request_hash ⇒ Object
9
10
11
12
13
|
# File 'lib/push_woosher/push.rb', line 9
def request_hash
{
notifications: [notification]
}
end
|
#resource_path ⇒ Object
5
6
7
|
# File 'lib/push_woosher/push.rb', line 5
def resource_path
'createMessage'
end
|