lib/gattica/engine.rb
# Use a token else, raise exception.
Use a token else, raise exception.
Use a token else raise exception .
def check_init_auth_requirements
      if @options[:token].to_s.length > 1
        self.token = @options[:token]
      else
        raise GatticaError::NoToken, 'An email and password or an authentication token is required to initialize Gattica.'
      end
    end
def check_init_auth_requirements if @options [ :token ] . to_s . length > 1 self . token = @options [ :token ] else raise GatticaError :: NoToken , 'An email and password or an authentication token is required to initialize Gattica.' end end
Use a token else, raise exception.
Use a token else raise exception .