Class: OasContrib::OpenAPI::Base
- Inherits:
-
Object
- Object
- OasContrib::OpenAPI::Base
- Includes:
- Interface::Spec
- Defined in:
- lib/oas_contrib/openapi/base.rb
Overview
Basical spec class
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Base
constructor
Initialize.
Methods included from Interface::Spec
Constructor Details
#initialize(data) ⇒ Base
Initialize
15 16 17 |
# File 'lib/oas_contrib/openapi/base.rb', line 15 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
9 10 11 |
# File 'lib/oas_contrib/openapi/base.rb', line 9 def data @data end |