Class: OpenapiBuilder::Core

Inherits:
Object
  • Object
show all
Defined in:
lib/openapi_builder/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



6
7
8
# File 'lib/openapi_builder/core.rb', line 6

def data
  @data
end

Instance Method Details

#to_jsonObject



12
13
14
# File 'lib/openapi_builder/core.rb', line 12

def to_json
  @data.to_json
end

#to_yamlObject



8
9
10
# File 'lib/openapi_builder/core.rb', line 8

def to_yaml
  @data.to_yaml
end