Class: OasContrib::OpenAPI::Base

Inherits:
Object
  • Object
show all
Includes:
Interface::Spec
Defined in:
lib/oas_contrib/openapi/base.rb

Overview

Basical spec class

Direct Known Subclasses

V2::Spec, V3::Spec

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Interface::Spec

#mapping

Constructor Details

#initialize(data) ⇒ Base

Initialize

Parameters:

  • data (Hash)

    spec data hash



15
16
17
# File 'lib/oas_contrib/openapi/base.rb', line 15

def initialize(data)
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



9
10
11
# File 'lib/oas_contrib/openapi/base.rb', line 9

def data
  @data
end