Class: Committee::Drivers::OpenAPI2::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/committee/drivers/open_api_2.rb

Overview

Link abstracts an API link specifically for OpenAPI 2.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#enc_typeObject

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_schemaObject

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

#hrefObject

Returns the value of attribute href.



79
80
81
# File 'lib/committee/drivers/open_api_2.rb', line 79

def href
  @href
end

#media_typeObject

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

#methodObject

Returns the value of attribute method.



84
85
86
# File 'lib/committee/drivers/open_api_2.rb', line 84

def method
  @method
end

#schemaObject

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_successObject

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_schemaObject

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

#relObject



98
99
100
# File 'lib/committee/drivers/open_api_2.rb', line 98

def rel
  raise "Committee: rel not implemented for OpenAPI"
end