Class: R2OAS::Schema::V3::BaseObject

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/r2-oas/schema/v3/object/from_routes/base_object.rb

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ BaseObject

Returns a new instance of BaseObject.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/r2-oas/schema/v3/object/from_routes/base_object.rb', line 14

def initialize(opts = {})
  AppConfiguration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", app_configuration_options[key])
  end

  PluggableConfiguration::VALID_OPTIONS_KEYS.each do |key|
    instance_variable_set(:"@#{key}", pluggable_configuration_options[key])
  end

  @opts = opts
  @plugin_executor = ::R2OAS::Plugin::Executor.new(@plugins, opts)
end

Instance Method Details

#components_object_classObject



43
44
45
# File 'lib/r2-oas/schema/v3/object/from_routes/base_object.rb', line 43

def components_object_class
  @use_object_classes[:components_object]
end

#components_request_body_object_classObject



51
52
53
# File 'lib/r2-oas/schema/v3/object/from_routes/base_object.rb', line 51

def components_request_body_object_class
  @use_object_classes[:components_request_body_object]
end

#components_schema_object_classObject



47
48
49
# File 'lib/r2-oas/schema/v3/object/from_routes/base_object.rb', line 47

def components_schema_object_class
  @use_object_classes[:components_schema_object]
end

#external_document_object_classObject



39
40
41
# File 'lib/r2-oas/schema/v3/object/from_routes/base_object.rb', line 39

def external_document_object_class
  @use_object_classes[:external_document_object]
end

#info_object_classObject



27
28
29
# File 'lib/r2-oas/schema/v3/object/from_routes/base_object.rb', line 27

def info_object_class
  @use_object_classes[:info_object]
end

#path_item_object_classObject



35
36
37
# File 'lib/r2-oas/schema/v3/object/from_routes/base_object.rb', line 35

def path_item_object_class
  @use_object_classes[:path_item_object]
end

#paths_object_classObject



31
32
33
# File 'lib/r2-oas/schema/v3/object/from_routes/base_object.rb', line 31

def paths_object_class
  @use_object_classes[:paths_object]
end