Class: Fakturoid::Client::Event

Inherits:
Api
  • Object
show all
Defined in:
lib/fakturoid/client/event.rb

Class Method Summary collapse

Methods inherited from Api

config, configure

Methods included from Api::Arguments

#permit_params, #validate_numerical_id, #validate_search_query

Methods included from Api::HttpMethods

#delete_request, #get_request, #patch_request, #post_request

Class Method Details

.all(params = {}) ⇒ Object



4
5
6
7
8
# File 'lib/fakturoid/client/event.rb', line 4

def self.all(params = {})
  request_params = permit_params(params, :page, :since, :subject_id) || {}

  get_request('events.json', request_params: request_params)
end


10
11
12
13
14
# File 'lib/fakturoid/client/event.rb', line 10

def self.paid(params = {})
  request_params = permit_params(params, :page, :since, :subject_id) || {}

  get_request('events/paid.json', request_params: request_params)
end