Module: Jibeset::Client::Events

Included in:
Jibeset::Client
Defined in:
lib/jibeset/client/events.rb

Instance Method Summary collapse

Instance Method Details

#create_event(payload) ⇒ Object



21
22
23
# File 'lib/jibeset/client/events.rb', line 21

def create_event(payload)
  post("/events", payload)
end

#destroy_event(payload) ⇒ Object



29
30
31
# File 'lib/jibeset/client/events.rb', line 29

def destroy_event(payload)
  delete("/events/#{payload['id']}")
end

#event(payload) ⇒ Object



9
10
11
# File 'lib/jibeset/client/events.rb', line 9

def event(payload)
  get("/events/#{payload[:id]}")
end

#event_entries(payload) ⇒ Object



13
14
15
# File 'lib/jibeset/client/events.rb', line 13

def event_entries(payload)
  get("/events/#{payload[:id]}/entries")
end

#event_fleets(payload) ⇒ Object



17
18
19
# File 'lib/jibeset/client/events.rb', line 17

def event_fleets(payload)
  get("/events/#{payload[:id]}/fleets")
end

#eventsObject



5
6
7
# File 'lib/jibeset/client/events.rb', line 5

def events
  get("/events")
end

#register_entry(payload) ⇒ Object



33
34
35
# File 'lib/jibeset/client/events.rb', line 33

def register_entry(payload)
  post("/events/#{payload[:event_id]}/entries", payload)
end

#update_event(payload) ⇒ Object



25
26
27
# File 'lib/jibeset/client/events.rb', line 25

def update_event(payload)
  put("/events/#{payload['id']}", payload)
end