Class: Shift4::Events
Class Method Summary
collapse
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
|