Class: R2OAS::Schema::V3::FromFiles::Components::RequestBodyRef
- 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 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) ⇒ RequestBodyRef
constructor
A new instance of RequestBodyRef.
Methods inherited from BaseRef
#[], #[]=, #pretty_print, #to_h
Constructor Details
#initialize(ref_or_data) ⇒ RequestBodyRef
Returns a new instance of RequestBodyRef.
131 132 133 |
# File 'lib/r2-oas/schema/v3/object/from_files/utils/refs.rb', line 131 def initialize(ref_or_data) build(ref_or_data, { type: :request_body }) end |