Class: Eventifier::API

Inherits:
Sliver::API
  • Object
show all
Defined in:
lib/eventifier/api.rb

Defined Under Namespace

Modules: View Classes: Base, GetNotifications, GetPreferences, PutPreferences, TouchNotifications

Instance Method Summary collapse

Constructor Details

#initializeAPI

Returns a new instance of API.



2
3
4
5
6
7
8
9
10
11
# File 'lib/eventifier/api.rb', line 2

def initialize
  super do |api|
    api.connect :get,  '/notifications', Eventifier::API::GetNotifications
    api.connect :post, '/notifications/touch',
      Eventifier::API::TouchNotifications

    api.connect :get, '/preferences', Eventifier::API::GetPreferences
    api.connect :put, '/preferences', Eventifier::API::PutPreferences
  end
end