def number_of_retries(num)
      raise ArgumentError, 'Must be positive Integer' unless num.is_a?(Integer) && num.positive?
      self.retries = num
    end
def number_of_retries(num)
      raise ArgumentError, 'Must be positive Integer' unless num.is_a?(Integer) && num.positive?
      self.retries = num
    end
Sets number of retries.

 Example:
   class PizzaService
     include Take2
     number_of_retries 3
   end
 Arguments:
   num: integer