class ResponseDescriptor
Attributes
format[R]
type[R]
version[R]
Public Class Methods
new(type, version, format)
click to toggle source
@param type [String] @param version [Integer] @param format [Symbol] :json
# File lib/hyperion/types/response_descriptor.rb, line 13 def initialize(type, version, format) @type, @version, @format = type, version, format end
Public Instance Methods
as_json(*_args)
click to toggle source
# File lib/hyperion/types/response_descriptor.rb, line 17 def as_json(*_args) { 'type' => type, 'version' => version, 'format' => format.to_s } end
to_s()
click to toggle source
# File lib/hyperion/types/response_descriptor.rb, line 25 def to_s short_mimetype(self) end