Class: Swaggable::CheckResponseCode
- Inherits:
-
Object
- Object
- Swaggable::CheckResponseCode
- Defined in:
- lib/swaggable/check_response_code.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) ⇒ CheckResponseCode
constructor
A new instance of CheckResponseCode.
Constructor Details
#initialize(args) ⇒ CheckResponseCode
Returns a new instance of CheckResponseCode.
5 6 7 8 |
# File 'lib/swaggable/check_response_code.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_code.rb', line 3 def endpoint @endpoint end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/swaggable/check_response_code.rb', line 3 def response @response end |
Class Method Details
.call(*args) ⇒ Object
10 11 12 |
# File 'lib/swaggable/check_response_code.rb', line 10 def self.call(*args) new(*args).send :errors end |