Sha256: ba092448c3bf8b75393fc231081296678b2a19c143ea5f123743508238bfdd47

Contents?: true

Size: 227 Bytes

Versions: 9

Compression:

Stored size: 227 Bytes

Contents

class PayloadDescriptor
  # describes the payload sent in POST/PUT/PATCH

  attr_reader :format

  def initialize(format)
    @format = format
  end

  def as_json(*_args)
    {
        'format' => format.to_s,
    }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hyperion_http-0.6.0 lib/hyperion/types/payload_descriptor.rb
hyperion_http-0.5.0 lib/hyperion/types/payload_descriptor.rb
hyperion_http-0.3.0 lib/hyperion/types/payload_descriptor.rb
hyperion_http-0.2.4 lib/hyperion/types/payload_descriptor.rb
hyperion_http-0.2.3 lib/hyperion/types/payload_descriptor.rb
hyperion_http-0.2.2 lib/hyperion/types/payload_descriptor.rb
hyperion_http-0.2.1 lib/hyperion/types/payload_descriptor.rb
hyperion_http-0.1.9 lib/hyperion/types/payload_descriptor.rb
hyperion_http-0.1.8 lib/hyperion/types/payload_descriptor.rb