Sha256: 5409311f99a8eddc247dff17b9eea8f3071dbd6ef4a29a6c153b7768d67044c8

Contents?: true

Size: 362 Bytes

Versions: 11

Compression:

Stored size: 362 Bytes

Contents

module Terminal
  class Request
    attr_accessor :client, :request_method, :path, :options

    def initialize(client, request_method, path, options = {})
      @client = client
      @request_method = request_method
      @path = path
      @options = options
    end

    def perform
      @client.send(@request_method, @path, @options).body
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cc-terminal-0.1.4 lib/terminal/request.rb
cc-terminal-0.1.2 lib/terminal/request.rb
cc-terminal-0.1.1 lib/terminal/request.rb
cc-terminal-0.1.0 lib/terminal/request.rb
cc-terminal-0.0.8 lib/terminal/request.rb
cc-terminal-0.0.7 lib/terminal/request.rb
cc-terminal-0.0.6 lib/terminal/request.rb
cc-terminal-0.0.5 lib/terminal/request.rb
cc-terminal-0.0.4 lib/terminal/request.rb
cc-terminal-0.0.3 lib/terminal/request.rb
cc-terminal-0.0.2 lib/terminal/request.rb