Class: Swaggable::CheckResponseContentType
- Inherits:
-
Object
- Object
- Swaggable::CheckResponseContentType
- Defined in:
- lib/swaggable/check_response_content_type.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ CheckResponseContentType
constructor
A new instance of CheckResponseContentType.
Constructor Details
#initialize(args) ⇒ CheckResponseContentType
Returns a new instance of CheckResponseContentType.
5 6 7 8 |
# File 'lib/swaggable/check_response_content_type.rb', line 5 def initialize args @endpoint = args.fetch(:endpoint) @response = args.fetch(:response) end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/swaggable/check_response_content_type.rb', line 3 def endpoint @endpoint end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/swaggable/check_response_content_type.rb', line 3 def response @response end |
Class Method Details
.call(*args) ⇒ Object
10 11 12 |
# File 'lib/swaggable/check_response_content_type.rb', line 10 def self.call(*args) new(*args).send :errors end |