module Dry::Types::Options

Public Instance Methods

is(*option_names) click to toggle source
# 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
is?(option_name) click to toggle source
# File lib/fortnox/api/types.rb, line 18
def is?(option_name)
  @options[option_name]
end