Class: Selenium::WebDriver::FedCM::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/selenium/webdriver/common/fedcm/account.rb

Overview

Represents an account displayed in a FedCm account list. See: w3c-fedid.github.io/FedCM/#dictdef-identityprovideraccount

https://w3c-fedid.github.io/FedCM/#webdriver-accountlist

Constant Summary collapse

LOGIN_STATE_SIGNIN =
'SignIn'
LOGIN_STATE_SIGNUP =
'SignUp'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Account

steep:ignore:start



34
35
36
37
38
39
40
41
42
43
44
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 34

def initialize(**args)
  @account_id = args['accountId']
  @email = args['email']
  @name = args['name']
  @given_name = args['givenName']
  @picture_url = args['pictureUrl']
  @idp_config_url = args['idpConfigUrl']
  @login_state = args['loginState']
  @terms_of_service_url = args['termsOfServiceUrl']
  @privacy_policy_url = args['privacyPolicyUrl']
end

Instance Attribute Details

#account_idObject (readonly)

Returns the value of attribute account_id.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def 
  @account_id
end

#emailObject (readonly)

Returns the value of attribute email.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def email
  @email
end

#given_nameObject (readonly)

Returns the value of attribute given_name.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def given_name
  @given_name
end

#idp_config_urlObject (readonly)

Returns the value of attribute idp_config_url.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def idp_config_url
  @idp_config_url
end

#login_stateObject (readonly)

Returns the value of attribute login_state.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def 
  @login_state
end

#nameObject (readonly)

Returns the value of attribute name.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def name
  @name
end

#picture_urlObject (readonly)

Returns the value of attribute picture_url.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def picture_url
  @picture_url
end

#privacy_policy_urlObject (readonly)

Returns the value of attribute privacy_policy_url.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def privacy_policy_url
  @privacy_policy_url
end

#terms_of_service_urlObject (readonly)

Returns the value of attribute terms_of_service_url.



30
31
32
# File 'lib/selenium/webdriver/common/fedcm/account.rb', line 30

def terms_of_service_url
  @terms_of_service_url
end