Class: Jsapi::Meta::RequestBody::Reference
- Inherits:
-
BaseReference
- Object
- Base
- BaseReference
- Jsapi::Meta::RequestBody::Reference
- Defined in:
- lib/jsapi/meta/request_body/reference.rb
Instance Method Summary collapse
-
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI reference object.
Methods inherited from BaseReference
lookup_method_name, #ref, #reference?, #resolve
Methods inherited from Base
#initialize, #inspect, #reference?, #resolve
Methods included from Attributes::ClassMethods
Constructor Details
This class inherits a constructor from Jsapi::Meta::Base
Instance Method Details
#to_openapi ⇒ Object
Returns a hash representing the OpenAPI reference object.
8 9 10 |
# File 'lib/jsapi/meta/request_body/reference.rb', line 8 def to_openapi(*) { '$ref': "#/components/requestBodies/#{ref}" } end |