Class: RequestHandler::OptionHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/request_handler/option_handler.rb

Direct Known Subclasses

IncludeOptionHandler, SortOptionHandler

Instance Method Summary collapse

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
  @allowed_options_type = allowed_options_type
  raise InternalArgumentError, allowed_options_type: 'must be a Enum' unless enum?
end