class OpenApi::Encoding
github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.1.md#encodingObject
Attributes
allow_reserved[RW]
content_type[RW]
explode[RW]
headers[RW]
style[RW]
Public Class Methods
load(hash)
click to toggle source
# File lib/open_api/encoding.rb, line 16 def self.load(hash) new( content_type: hash["contentType"]&.to_s, headers: hash["headers"]&.map { |k, v| [k, Reference.load(v) || Header.load(v)] }.to_h, style: hash["style"]&.to_s, explode: hash["explode"], allow_reserved: hash["allowReserved"].nil? ? false : hash["allowReserved"], ) end
new(content_type: nil, headers: nil, style: nil, explode: nil, allow_reserved: false)
click to toggle source
# File lib/open_api/encoding.rb, line 8 def initialize(content_type: nil, headers: nil, style: nil, explode: nil, allow_reserved: false) self.content_type = content_type self.headers = headers self.style = style self.explode = explode self.allow_reserved = allow_reserved end