Class: Jsapi::Meta::OpenAPI::Link::Model
- Defined in:
- lib/jsapi/meta/openapi/link/model.rb
Overview
Represents a link object.
Instance Method Summary collapse
-
#description ⇒ Object
:attr: description The optional description of the link.
-
#operation_id ⇒ Object
:attr: operation_id The operation ID.
-
#parameters ⇒ Object
:attr: parameters The optional parameters to be passed.
-
#request_body ⇒ Object
:attr: request_body The optional request body to be passed.
-
#server ⇒ Object
:attr: server The optional Server object.
-
#to_openapi ⇒ Object
Returns a hash representing the link object.
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
#description ⇒ Object
:attr: description The optional description of the link.
12 |
# File 'lib/jsapi/meta/openapi/link/model.rb', line 12 attribute :description, String |
#operation_id ⇒ Object
:attr: operation_id The operation ID.
17 |
# File 'lib/jsapi/meta/openapi/link/model.rb', line 17 attribute :operation_id, String |
#parameters ⇒ Object
:attr: parameters The optional parameters to be passed.
22 |
# File 'lib/jsapi/meta/openapi/link/model.rb', line 22 attribute :parameters, { String => Object } |
#request_body ⇒ Object
:attr: request_body The optional request body to be passed.
27 |
# File 'lib/jsapi/meta/openapi/link/model.rb', line 27 attribute :request_body |
#server ⇒ Object
:attr: server The optional Server object.
32 |
# File 'lib/jsapi/meta/openapi/link/model.rb', line 32 attribute :server, Server |
#to_openapi ⇒ Object
Returns a hash representing the link object.
35 36 37 38 39 40 41 42 43 |
# File 'lib/jsapi/meta/openapi/link/model.rb', line 35 def to_openapi(*) { operationId: operation_id, parameters: parameters, requestBody: request_body, description: description, server: server&.to_openapi }.compact end |