Sha256: 1d485f6dd243612ad9a67feb8130cf397e974cc33661ab32a47458c8712a3cf7

Contents?: true

Size: 408 Bytes

Versions: 6

Compression:

Stored size: 408 Bytes

Contents

require 'hyperion/headers'

class ResponseDescriptor
  # Describes properties of an acceptable response

  include Hyperion::Headers

  attr_reader :type, :version, :format

  # @param type [String]
  # @param version [Integer]
  # @param format [Symbol] :json
  def initialize(type, version, format)
    @type, @version, @format = type, version, format
  end

  def to_s
    short_mimetype(self)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hyperion_http-0.1.7 lib/hyperion/types/response_descriptor.rb
hyperion_http-0.1.6 lib/hyperion/types/response_descriptor.rb
hyperion_http-0.1.5 lib/hyperion/types/response_descriptor.rb
hyperion_http-0.1.4 lib/hyperion/types/response_descriptor.rb
hyperion_http-0.1.3 lib/hyperion/types/response_descriptor.rb
hyperion_http-0.1.2 lib/hyperion/types/response_descriptor.rb