Class: R2OAS::Schema::V3::ComponentsObject

Inherits:
Dynamic::Schema::V3::HookableBaseObject show all
Defined in:
lib/r2-oas/schema/v3/object/from_routes/components_object.rb

Instance Attribute Summary

Attributes inherited from Dynamic::Schema::V3::HookableBaseObject

#doc

Instance Method Summary collapse

Methods inherited from Dynamic::Schema::V3::HookableBaseObject

execute_hook, has_hook?, hook, hook=, hooks, inherited, off, on, #to_doc, #use_superclass_hook

Methods inherited from BaseObject

#components_object_class, #components_request_body_object_class, #components_schema_object_class, #external_document_object_class, #info_object_class, #path_item_object_class, #paths_object_class

Constructor Details

#initialize(routes_data, opts = {}) ⇒ ComponentsObject

Returns a new instance of ComponentsObject.



11
12
13
14
# File 'lib/r2-oas/schema/v3/object/from_routes/components_object.rb', line 11

def initialize(routes_data, opts = {})
  super(opts)
  @routes_data = routes_data
end

Instance Method Details

#create_docObject



16
17
18
19
# File 'lib/r2-oas/schema/v3/object/from_routes/components_object.rb', line 16

def create_doc
  create_doc_for_components_schemas!
  create_doc_for_components_request_bodies!
end