Class: Shift4::Events

Inherits:
Object
  • Object
show all
Extended by:
TransactionBase
Defined in:
lib/shift4/events.rb

Class Method Summary collapse

Methods included from TransactionBase

communicator, communicator=

Class Method Details

.list(params = nil, config = Configuration) ⇒ Object



11
12
13
# File 'lib/shift4/events.rb', line 11

def self.list(params = nil, config = Configuration)
  communicator.get("#{config.api_url}/events", query: params, config: config)
end

.retrieve(event_id, config = Configuration) ⇒ Object



7
8
9
# File 'lib/shift4/events.rb', line 7

def self.retrieve(event_id, config = Configuration)
  communicator.get("#{config.api_url}/events/#{event_id}", config: config)
end