Sha256: 64b879ace63b4253ce7fb9e779558b4e9d5274daad27e8241fb64038140bd3af
Contents?: true
Size: 734 Bytes
Versions: 2
Compression:
Stored size: 734 Bytes
Contents
module Zype class LiveEvents < Zype::BaseModel # Starts broadcasting a live event # # @param id [String] the ID of the live event # @return [Hash] the live event def start(id:) client.execute(method: :put, path: "/live_events/#{id}/start") end # Stops broadcasting a live event # # @param id [String] the ID of the live event # @return [Hash] the live event def stop(id:) client.execute(method: :put, path: "/live_events/#{id}/stop") end # Archives the live event # # @param id [String] the ID of the live event # @return [Hash] the live event def archive(id:) client.execute(method: :put, path: "/live_events/#{id}/archive") end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zype-0.5.0 | lib/zype/models/live_events.rb |
zype-0.4.0 | lib/zype/models/live_events.rb |