Module: Dry::Types::Options

Defined in:
lib/fortnox/api/types.rb

Instance Method Summary collapse

Instance Method Details

#is(*option_names) ⇒ Object



11
12
13
14
15
16
# File 'lib/fortnox/api/types.rb', line 11

def is(*option_names)
  new_options = option_names.each_with_object({}) do |name, hash|
    hash[name] = true
  end
  with(**new_options)
end