Class: SimpleGoogleAuth::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/simple_google_auth.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#authenticateObject

Returns the value of attribute authenticate

Returns:

  • (Object)

    the current value of authenticate



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def authenticate
  @authenticate
end

#ca_pathObject

Returns the value of attribute ca_path

Returns:

  • (Object)

    the current value of ca_path



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def ca_path
  @ca_path
end

#client_idObject

Returns the value of attribute client_id

Returns:

  • (Object)

    the current value of client_id



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def client_id
  @client_id
end

#client_secretObject

Returns the value of attribute client_secret

Returns:

  • (Object)

    the current value of client_secret



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def client_secret
  @client_secret
end

#data_session_key_nameObject

Returns the value of attribute data_session_key_name

Returns:

  • (Object)

    the current value of data_session_key_name



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def data_session_key_name
  @data_session_key_name
end

#failed_login_pathObject

Returns the value of attribute failed_login_path

Returns:

  • (Object)

    the current value of failed_login_path



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def 
  @failed_login_path
end

#google_auth_urlObject

Returns the value of attribute google_auth_url

Returns:

  • (Object)

    the current value of google_auth_url



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def google_auth_url
  @google_auth_url
end

#google_token_urlObject

Returns the value of attribute google_token_url

Returns:

  • (Object)

    the current value of google_token_url



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def google_token_url
  @google_token_url
end

#redirect_pathObject

Returns the value of attribute redirect_path

Returns:

  • (Object)

    the current value of redirect_path



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def redirect_path
  @redirect_path
end

#redirect_uriObject

Returns the value of attribute redirect_uri

Returns:

  • (Object)

    the current value of redirect_uri



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def redirect_uri
  @redirect_uri
end

#refresh_stale_tokensObject

Returns the value of attribute refresh_stale_tokens

Returns:

  • (Object)

    the current value of refresh_stale_tokens



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def refresh_stale_tokens
  @refresh_stale_tokens
end

#request_parametersObject

Returns the value of attribute request_parameters

Returns:

  • (Object)

    the current value of request_parameters



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def request_parameters
  @request_parameters
end

#state_session_key_nameObject

Returns the value of attribute state_session_key_name

Returns:

  • (Object)

    the current value of state_session_key_name



4
5
6
# File 'lib/simple_google_auth.rb', line 4

def state_session_key_name
  @state_session_key_name
end

Instance Method Details

#get_or_call(attribute) ⇒ Object



19
20
21
22
# File 'lib/simple_google_auth.rb', line 19

def get_or_call(attribute)
  value = send(attribute)
  value.respond_to?(:call) ? value.call : value
end