Sha256: 4c6ba2fbf2b51e120f0aa77aae9bee0f48792f4d9cfff067236c5eaa88bee90b

Contents?: true

Size: 554 Bytes

Versions: 128

Compression:

Stored size: 554 Bytes

Contents

module Tickethub
  class Response #:nodoc:
    class Headers
      include ::Net::HTTPHeader

      def initialize(header = {})
        @header = header
      end

      def ==(other)
        @header == other
      end

      def inspect
        @header.inspect
      end

      def method_missing(name, *args, &block)
        if @header.respond_to?(name)
          @header.send(name, *args, &block)
        else
          super
        end
      end

      def respond_to?(method)
        super || @header.respond_to?(method)
      end
    end
  end
end

Version data entries

128 entries across 128 versions & 1 rubygems

Version Path
tickethub-0.3.100 lib/tickethub/response/headers.rb
tickethub-0.3.99 lib/tickethub/response/headers.rb
tickethub-0.3.98 lib/tickethub/response/headers.rb
tickethub-0.3.97 lib/tickethub/response/headers.rb
tickethub-0.3.96 lib/tickethub/response/headers.rb
tickethub-0.3.95 lib/tickethub/response/headers.rb
tickethub-0.3.94 lib/tickethub/response/headers.rb
tickethub-0.3.93 lib/tickethub/response/headers.rb
tickethub-0.3.92 lib/tickethub/response/headers.rb
tickethub-0.3.91 lib/tickethub/response/headers.rb
tickethub-0.3.90 lib/tickethub/response/headers.rb
tickethub-0.3.89 lib/tickethub/response/headers.rb
tickethub-0.3.88 lib/tickethub/response/headers.rb
tickethub-0.3.87 lib/tickethub/response/headers.rb
tickethub-0.3.86 lib/tickethub/response/headers.rb
tickethub-0.3.85 lib/tickethub/response/headers.rb
tickethub-0.3.84 lib/tickethub/response/headers.rb
tickethub-0.3.82 lib/tickethub/response/headers.rb
tickethub-0.3.81 lib/tickethub/response/headers.rb
tickethub-0.3.80 lib/tickethub/response/headers.rb