Sha256: a1cc82febd2266305faff557eea96381a4a6de647517d37ce704a92dde9abe1f

Contents?: true

Size: 605 Bytes

Versions: 5

Compression:

Stored size: 605 Bytes

Contents

require 'terminal/utils'

module Terminal
  module Modules
    module RequestProgress
      include Terminal::Utils

      # Get info and status of an API request
      #
      # @see https://www.terminal.com/api/docs#request-progress
      # @param request_id [String] the request id you are trying to get more info about
      # @return [Hash] of terminals, the key :terminals is top level
      def request_progress(request_id)
        options = {}
        options[:auth] = true
        options[:request_id] = request_id
        perform(:post, 'request_progress', options )
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cc-terminal-0.1.4 lib/terminal/modules/request_progress.rb
cc-terminal-0.1.2 lib/terminal/modules/request_progress.rb
cc-terminal-0.1.1 lib/terminal/modules/request_progress.rb
cc-terminal-0.1.0 lib/terminal/modules/request_progress.rb
cc-terminal-0.0.8 lib/terminal/modules/request_progress.rb