lib/jss/api_object/extendable.rb
def validate_integer_ea_value(ea_name, value)
      if value.is_a? Integer
        value
      elsif value.to_s.jss_integer?
        value.to_s.to_i
      else
        raise JSS::InvalidDataError, "The value for #{ea_name} must be an integer"
      end # if
    end
# raise error if the value isn't an integer
raise error if the value isn't an integer
raise error if the value isn ' t an integer
def validate_integer_ea_value(ea_name, value)
      if value.is_a? Integer
        value
      elsif value.to_s.jss_integer?
        value.to_s.to_i
      else
        raise JSS::InvalidDataError, "The value for #{ea_name} must be an integer"
      end 
    end
def validate_integer_ea_value ( ea_name , value ) if value . is_a? Integer value elsif value . to_s . jss_integer? value . to_s . to_i else raise JSS :: InvalidDataError , "The value for #{ea_name} must be an integer" end end
raise error if the value isn't an integer
raise error if the value isn ' t an integer
# if
ea_name
value