Sha256: 09978567e2ba3017a5cd362632f56c95ff81b957ff806abf48c121c0dd34222f

Contents?: true

Size: 663 Bytes

Versions: 44

Compression:

Stored size: 663 Bytes

Contents

module PortaText
  module Command
    # This class holds the descriptor with the needed information to call an
    # endpoint.
    #
    # Author::    Marcelo Gornstein (mailto:marcelog@portatext.com)
    # Copyright:: Copyright (c) 2015 PortaText
    # License::   Apache-2.0
    class Descriptor
      attr_accessor :uri
      attr_accessor :method
      attr_accessor :headers
      attr_accessor :body
      attr_accessor :output_file

      def initialize(uri, method, headers, body, output_file = nil)
        @uri = uri
        @method = method
        @headers = headers
        @body = body
        @output_file = output_file
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
portatext-1.6.1 lib/portatext/command/descriptor.rb
portatext-1.6.0 lib/portatext/command/descriptor.rb
portatext-1.5.23 lib/portatext/command/descriptor.rb
portatext-1.5.22 lib/portatext/command/descriptor.rb
portatext-1.5.21 lib/portatext/command/descriptor.rb
portatext-1.5.20 lib/portatext/command/descriptor.rb
portatext-1.5.19 lib/portatext/command/descriptor.rb
portatext-1.5.18 lib/portatext/command/descriptor.rb
portatext-1.5.17 lib/portatext/command/descriptor.rb
portatext-1.5.16 lib/portatext/command/descriptor.rb
portatext-1.5.15 lib/portatext/command/descriptor.rb
portatext-1.5.14 lib/portatext/command/descriptor.rb
portatext-1.5.13 lib/portatext/command/descriptor.rb
portatext-1.5.12 lib/portatext/command/descriptor.rb
portatext-1.5.11 lib/portatext/command/descriptor.rb
portatext-1.5.10 lib/portatext/command/descriptor.rb
portatext-1.5.9 lib/portatext/command/descriptor.rb
portatext-1.5.8 lib/portatext/command/descriptor.rb
portatext-1.5.7 lib/portatext/command/descriptor.rb
portatext-1.5.6 lib/portatext/command/descriptor.rb