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