Class: Professionali::Api::Notify

Inherits:
Professionali::ApiCore show all
Defined in:
lib/professionali/api/notify.rb

Instance Attribute Summary

Attributes inherited from Professionali::ApiCore

#token

Instance Method Summary collapse

Methods inherited from Professionali::ApiCore

#api_call, #initialize, #raise_errors

Constructor Details

This class inherits a constructor from Professionali::ApiCore

Instance Method Details

#get(options = {}) ⇒ Object



4
5
6
# File 'lib/professionali/api/notify.rb', line 4

def get(options = {})
  api_call 'notify/get.json', 'get', options
end

#post(message) ⇒ Object



8
9
10
# File 'lib/professionali/api/notify.rb', line 8

def post(message)
  api_call 'notify/post.json', 'post', message: message
end