Sha256: 623e20aaffc5b155fa7f55a934525856ffa82c215ebd5ad9e277452877f7fa27

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

# api_methods.rb
require_relative './api_methods/streams_options'

module Carriots
  # Connecction options for {Client}
  #
  module ApiMethods
    def streams(options = {}, *args)
      build_options = StreamsOptions.new(options).build_options

      get("streams/#{build_options}", *args)
    end

    def stream(device = default_device, *args)
      get("streams/#{device}", *args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carriots-0.0.2 lib/carriots/api_methods.rb