Class: KrakendOpenAPI::OA3Reader

Inherits:
Object
  • Object
show all
Defined in:
lib/readers/oa3_reader.rb

Overview

Reads OpenAPI spec files

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ OA3Reader

Returns a new instance of OA3Reader.



9
10
11
# File 'lib/readers/oa3_reader.rb', line 9

def initialize(path)
  @path = path
end

Instance Method Details

#pathsObject



13
14
15
16
# File 'lib/readers/oa3_reader.rb', line 13

def paths
  read unless defined?(@data)
  @data['paths']
end