Sha256: 19ed9a19ebaeca17aa75aee9427702eb0021630c15f5ce38319ae06c3cd96e06
Contents?: true
Size: 935 Bytes
Versions: 2
Compression:
Stored size: 935 Bytes
Contents
module Zype class Encoders < Zype::BaseModel # Returns encoder matching the encoder_name # # @param encoder_name [String] the name of the encoder # @return [Hash] properties of the encoder def find(encoder_name:) client.execute(method: :get, path: "/live/encoders/#{encoder_name}") end # Starts encoder matching the encoder_name # # @param encoder_name [String] the name of the encoder # @return [Hash] properties of the encoder def start(encoder_name:) client.execute(method: :post, path: "/live/encoders/#{encoder_name}/start") end # Stops encoder matching the encoder_name # # @param encoder_name [String] the name of the encoder # @return [Hash] properties of the encoder def stop(encoder_name:) client.execute(method: :post, path: "/live/encoders/#{encoder_name}/stop") end def path @path = "live/encoders" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zype-0.5.0 | lib/zype/models/encoders.rb |
zype-0.4.0 | lib/zype/models/encoders.rb |