Class: Jsapi::Meta::OpenAPI::Link::Reference

Inherits:
BaseReference show all
Defined in:
lib/jsapi/meta/openapi/link/reference.rb

Instance Method Summary collapse

Methods inherited from BaseReference

lookup_method_name, #ref, #reference?, #resolve

Methods inherited from Base

#initialize, #inspect, #reference?, #resolve

Methods included from Attributes::ClassMethods

#attribute, #attribute_names

Constructor Details

This class inherits a constructor from Jsapi::Meta::Base

Instance Method Details

#to_openapiObject

Returns a hash representing the OpenAPI reference object.



9
10
11
# File 'lib/jsapi/meta/openapi/link/reference.rb', line 9

def to_openapi(*)
  { '$ref': "#/components/links/#{ref}" }
end