Class: Committee::Drivers::OpenAPI2::Link
- Inherits:
-
Object
- Object
- Committee::Drivers::OpenAPI2::Link
- Defined in:
- lib/committee/drivers/open_api_2.rb
Overview
Link abstracts an API link specifically for OpenAPI 2.
Instance Attribute Summary collapse
-
#enc_type ⇒ Object
The link’s input media type.
-
#header_schema ⇒ Object
Returns the value of attribute header_schema.
-
#href ⇒ Object
Returns the value of attribute href.
-
#media_type ⇒ Object
The link’s output media type.
-
#method ⇒ Object
Returns the value of attribute method.
-
#schema ⇒ Object
The link’s input schema.
-
#status_success ⇒ Object
Returns the value of attribute status_success.
-
#target_schema ⇒ Object
The link’s output schema.
Instance Method Summary collapse
Instance Attribute Details
#enc_type ⇒ Object
The link’s input media type. i.e. How requests should be encoded.
77 78 79 |
# File 'lib/committee/drivers/open_api_2.rb', line 77 def enc_type @enc_type end |
#header_schema ⇒ Object
Returns the value of attribute header_schema.
96 97 98 |
# File 'lib/committee/drivers/open_api_2.rb', line 96 def header_schema @header_schema end |
#href ⇒ Object
Returns the value of attribute href.
79 80 81 |
# File 'lib/committee/drivers/open_api_2.rb', line 79 def href @href end |
#media_type ⇒ Object
The link’s output media type. i.e. How responses should be encoded.
82 83 84 |
# File 'lib/committee/drivers/open_api_2.rb', line 82 def media_type @media_type end |
#method ⇒ Object
Returns the value of attribute method.
84 85 86 |
# File 'lib/committee/drivers/open_api_2.rb', line 84 def method @method end |
#schema ⇒ Object
The link’s input schema. i.e. How we validate an endpoint’s incoming parameters.
88 89 90 |
# File 'lib/committee/drivers/open_api_2.rb', line 88 def schema @schema end |
#status_success ⇒ Object
Returns the value of attribute status_success.
90 91 92 |
# File 'lib/committee/drivers/open_api_2.rb', line 90 def status_success @status_success end |
#target_schema ⇒ Object
The link’s output schema. i.e. How we validate an endpoint’s response data.
94 95 96 |
# File 'lib/committee/drivers/open_api_2.rb', line 94 def target_schema @target_schema end |
Instance Method Details
#rel ⇒ Object
98 99 100 |
# File 'lib/committee/drivers/open_api_2.rb', line 98 def rel raise "Committee: rel not implemented for OpenAPI" end |