class PayloadDescriptor

Attributes

format[R]

describes the payload sent in POST/PUT/PATCH

Public Class Methods

new(format) click to toggle source
# File lib/hyperion/types/payload_descriptor.rb, line 6
def initialize(format)
  @format = format
end

Public Instance Methods

as_json(*_args) click to toggle source
# File lib/hyperion/types/payload_descriptor.rb, line 10
def as_json(*_args)
  {
      'format' => format.to_s,
  }
end