Class: R2OAS::Schema::V3::FromFiles::PathsObject

Inherits:
BaseObject show all
Defined in:
lib/r2-oas/schema/v3/object/from_files/paths_object.rb

Instance Method Summary collapse

Methods inherited from BaseObject

obj_store

Constructor Details

#initialize(doc, opts = {}) ⇒ PathsObject

Returns a new instance of PathsObject.



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

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

Instance Method Details

#to_docObject



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

def to_doc
  create_doc
  @doc
end