def backoff_strategy(options)
      available_types = [:constant, :linear, :fibonacci, :exponential]
      raise ArgumentError, 'Incorrect backoff type' unless available_types.include?(options[:type])
      self.backoff_intervals = Backoff.new(options[:type], options[:start]).intervals
    end
def backoff_strategy(options)
      available_types = [:constant, :linear, :fibonacci, :exponential]
      raise ArgumentError, 'Incorrect backoff type' unless available_types.include?(options[:type])
      self.backoff_intervals = Backoff.new(options[:type], options[:start]).intervals
    end
Sets the backoff strategy

 Example:
   class PizzaService
     include Take2
     backoff_strategy type: :exponential, start: 3
   end
 Arguments:
   hash: object