Class: R2OAS::Schema::V3::FromFiles::Components::SchemaRef
- Defined in:
- lib/r2-oas/schema/v3/object/from_files/utils/refs.rb
Constant Summary collapse
- READONLY_KEYS =
i[type path parent_schema_name depth tag_name verb http_status from].freeze
- WRITABLE_KEYS =
[:schema_name].freeze
- VALID_KEYS =
READONLY_KEYS + WRITABLE_KEYS
Instance Attribute Summary
Attributes inherited from BaseRef
Instance Method Summary collapse
-
#initialize(ref_or_data) ⇒ SchemaRef
constructor
A new instance of SchemaRef.
Methods inherited from BaseRef
#[], #[]=, #pretty_print, #to_h
Constructor Details
#initialize(ref_or_data) ⇒ SchemaRef
Returns a new instance of SchemaRef.
106 107 108 |
# File 'lib/r2-oas/schema/v3/object/from_files/utils/refs.rb', line 106 def initialize(ref_or_data) build(ref_or_data, { type: :schema }) end |