class Ipfinder::Tokenvalidation

class Tokenvalidation

Public Class Methods

validate(token) click to toggle source

Helper method for validating IPFINDER API TOKEN @param token [String] token Your API key or the string “free” for the free API @raise [IPfinderException] @return [true]

# File lib/ipfinder/Validation/Tokenvalidation.rb, line 11
def self.validate(token)
  raise IPfinderException, 'Invalid IPFINDER API Token' if token.length < 25

  true
end