Class: Zype::LiveEvents
- Defined in:
- lib/zype/models/live_events.rb
Overview
Read more at docs.zype.com/v1.0/reference#live-events
Constant Summary
Constants inherited from BaseModel
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#archive(id:) ⇒ Hash
Archives the live event.
-
#start(id:) ⇒ Hash
Starts broadcasting a live event.
-
#stop(id:) ⇒ Hash
Stops broadcasting a live event.
Methods inherited from BaseModel
#all, #auth=, #create, #delete, #find, #initialize, #update
Constructor Details
This class inherits a constructor from Zype::BaseModel
Instance Method Details
#archive(id:) ⇒ Hash
Archives the live event
26 27 28 |
# File 'lib/zype/models/live_events.rb', line 26 def archive(id:) client.execute(method: :put, path: "/live_events/#{id}/archive") end |
#start(id:) ⇒ Hash
Starts broadcasting a live event
10 11 12 |
# File 'lib/zype/models/live_events.rb', line 10 def start(id:) client.execute(method: :put, path: "/live_events/#{id}/start") end |
#stop(id:) ⇒ Hash
Stops broadcasting a live event
18 19 20 |
# File 'lib/zype/models/live_events.rb', line 18 def stop(id:) client.execute(method: :put, path: "/live_events/#{id}/stop") end |