Class: R2OAS::Schema::V3::FromFiles::PathRef

Inherits:
BaseRef show all
Defined in:
lib/r2-oas/schema/v3/object/from_files/utils/refs.rb

Constant Summary collapse

VALID_KEYS =
%i[type path].freeze

Instance Attribute Summary

Attributes inherited from BaseRef

#parent

Instance Method Summary collapse

Methods inherited from BaseRef

#[], #[]=, #pretty_print, #to_h

Constructor Details

#initialize(data) ⇒ PathRef

Returns a new instance of PathRef.



80
81
82
# File 'lib/r2-oas/schema/v3/object/from_files/utils/refs.rb', line 80

def initialize(data)
  build(data, { type: :path_item })
end