Sha256: 0dd4f1ac53a231f273bf3ed663a352947087dc9739a3d78f3fd8a773ab7be13d

Contents?: true

Size: 529 Bytes

Versions: 8

Compression:

Stored size: 529 Bytes

Contents

# Sorenson Namespace
module Sorenson
  # Sorenson Services Namespace
  module Services
    # Allows you to access the resources associated with a sorenson services asset.  An asset currently refers to video content.
    class Preset < Base
      def self.all
        get_from('/presets')
      end
      
      def self.find_by_name(name)
        response = get_from("/presets/#{URI.encode(name)}")
        if response.has_key?(:errors)
          nil
        else
          response['url']
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
360_services-1.0.6 lib/sorenson/services/preset.rb
360_services-1.0.5 lib/sorenson/services/preset.rb
360_services-1.0.3 lib/sorenson/services/preset.rb
360_services-1.0.2 lib/sorenson/services/preset.rb
360_services-0.0.8 lib/sorenson/services/preset.rb
360_services-0.0.7 lib/sorenson/services/preset.rb
360_services-0.0.6 lib/sorenson/services/preset.rb
360_services-0.0.5 lib/sorenson/services/preset.rb