Class: Strict::MethodCallError
Instance Attribute Summary collapse
-
#invalid_parameters ⇒ Object
readonly
Returns the value of attribute invalid_parameters.
-
#missing_parameters ⇒ Object
readonly
Returns the value of attribute missing_parameters.
-
#remaining_args ⇒ Object
readonly
Returns the value of attribute remaining_args.
-
#remaining_kwargs ⇒ Object
readonly
Returns the value of attribute remaining_kwargs.
-
#verifiable_method ⇒ Object
readonly
Returns the value of attribute verifiable_method.
Instance Method Summary collapse
-
#initialize(verifiable_method:, remaining_args:, remaining_kwargs:, invalid_parameters:, missing_parameters:) ⇒ MethodCallError
constructor
rubocop:disable Metrics/MethodLength.
Constructor Details
#initialize(verifiable_method:, remaining_args:, remaining_kwargs:, invalid_parameters:, missing_parameters:) ⇒ MethodCallError
rubocop:disable Metrics/MethodLength
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/strict/method_call_error.rb', line 7 def initialize(verifiable_method:, remaining_args:, remaining_kwargs:, invalid_parameters:, missing_parameters:) # rubocop:disable Metrics/MethodLength super( ( verifiable_method: verifiable_method, remaining_args: remaining_args, remaining_kwargs: remaining_kwargs, invalid_parameters: invalid_parameters, missing_parameters: missing_parameters ) ) @verifiable_method = verifiable_method @remaining_args = remaining_args @remaining_kwargs = remaining_kwargs @invalid_parameters = invalid_parameters @missing_parameters = missing_parameters end |
Instance Attribute Details
#invalid_parameters ⇒ Object (readonly)
Returns the value of attribute invalid_parameters.
5 6 7 |
# File 'lib/strict/method_call_error.rb', line 5 def invalid_parameters @invalid_parameters end |
#missing_parameters ⇒ Object (readonly)
Returns the value of attribute missing_parameters.
5 6 7 |
# File 'lib/strict/method_call_error.rb', line 5 def missing_parameters @missing_parameters end |
#remaining_args ⇒ Object (readonly)
Returns the value of attribute remaining_args.
5 6 7 |
# File 'lib/strict/method_call_error.rb', line 5 def remaining_args @remaining_args end |
#remaining_kwargs ⇒ Object (readonly)
Returns the value of attribute remaining_kwargs.
5 6 7 |
# File 'lib/strict/method_call_error.rb', line 5 def remaining_kwargs @remaining_kwargs end |
#verifiable_method ⇒ Object (readonly)
Returns the value of attribute verifiable_method.
5 6 7 |
# File 'lib/strict/method_call_error.rb', line 5 def verifiable_method @verifiable_method end |