Class: Wajub::EventsResource

Inherits:
BaseClient show all
Defined in:
lib/wajub/resources.rb

Instance Attribute Summary

Attributes inherited from BaseClient

#api_key, #base_url, #idempotency_key_prefix, #last_request, #transport

Instance Method Summary collapse

Methods inherited from BaseClient

#delete, #get, #initialize, #post, #put, #request

Constructor Details

This class inherits a constructor from Wajub::BaseClient

Instance Method Details

#list(params = nil) ⇒ Object



118
119
120
# File 'lib/wajub/resources.rb', line 118

def list(params = nil)
  PagedResult.create(self, '/events', 'events', params)
end

#resend(id, options = nil) ⇒ Object



126
127
128
# File 'lib/wajub/resources.rb', line 126

def resend(id, options = nil)
  HttpUtils.pick_resource(post("/events/#{URI.encode_www_form_component(id)}/resend", nil, options), 'event')
end

#retrieve(id) ⇒ Object



122
123
124
# File 'lib/wajub/resources.rb', line 122

def retrieve(id)
  HttpUtils.pick_resource(get("/events/#{URI.encode_www_form_component(id)}"), 'event')
end