Sha256: d2ed94b18ff4a3324c5a7ecd6c7b7d843116a2ba4424536eccba17687bcef270

Contents?: true

Size: 609 Bytes

Versions: 12

Compression:

Stored size: 609 Bytes

Contents

module Vzaar
  module Request
    class Signature < Base
      endpoint "/api/videos/signature"
      authenticated true
      resource :signature

      private

      def url_params
        # JC: refactor it
        _params = {}
        if options[:success_action_redirect]
          _params[:success_action_redirect] = options[:success_action_redirect]
        end
        if options[:include_metadata]
          _params[:include_metadata] = 'yes'
        end
        if options[:flash_request]
          _params[:flash_request] = 'yes'
        end
        super.merge(_params)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
vzaar-1.5.3 lib/vzaar/request/signature.rb
vzaar-1.5.2 lib/vzaar/request/signature.rb
vzaar-1.5.1 lib/vzaar/request/signature.rb
vzaar-1.5.0 lib/vzaar/request/signature.rb
vzaar-1.4.4 lib/vzaar/request/signature.rb
vzaar-1.4.1 lib/vzaar/request/signature.rb
vzaar-1.3.1 lib/vzaar/request/signature.rb
vzaar-1.3.0 lib/vzaar/request/signature.rb
vzaar-1.2.4 lib/vzaar/request/signature.rb
vzaar-1.2.3 lib/vzaar/request/signature.rb
vzaar-1.2.2 lib/vzaar/request/signature.rb
vzaar-1.0.0 lib/vzaar/request/signature.rb