Class: RequestHandler::OptionHandler
- Inherits:
-
Object
- Object
- RequestHandler::OptionHandler
- Defined in:
- lib/request_handler/option_handler.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(params:, allowed_options_type:) ⇒ OptionHandler
constructor
A new instance of OptionHandler.
Constructor Details
#initialize(params:, allowed_options_type:) ⇒ OptionHandler
Returns a new instance of OptionHandler.
5 6 7 8 9 |
# File 'lib/request_handler/option_handler.rb', line 5 def initialize(params:, allowed_options_type:) @params = params = raise InternalArgumentError, allowed_options_type: 'must be a Enum' unless enum? end |