Class: R2OAS::Schema::V3::FromFiles::PathRef
- 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
Instance Method Summary collapse
-
#initialize(data) ⇒ PathRef
constructor
A new instance of PathRef.
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 |