Class: ActiveTranslation::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/active_translation/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/active_translation/configuration.rb', line 16

def initialize
  @type = nil
  @project_id = nil
  @private_key_id = nil
  @private_key = nil
  @client_email = nil
  @client_id = nil
  @auth_uri = "https://accounts.google.com/o/oauth2/auth"
  @token_uri = "https://oauth2.googleapis.com/token"
  @auth_provider_x509_cert_url = "https://www.googleapis.com/oauth2/v1/certs"
  @client_x509_cert_url = nil
  @universe_domain = "googleapis.com"
  @non_mock_environments = [ :production ]
end

Instance Attribute Details

#auth_provider_x509_cert_urlObject

Returns the value of attribute auth_provider_x509_cert_url.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def auth_provider_x509_cert_url
  @auth_provider_x509_cert_url
end

#auth_uriObject

Returns the value of attribute auth_uri.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def auth_uri
  @auth_uri
end

#client_emailObject

Returns the value of attribute client_email.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def client_email
  @client_email
end

#client_idObject

Returns the value of attribute client_id.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def client_id
  @client_id
end

#client_x509_cert_urlObject

Returns the value of attribute client_x509_cert_url.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def client_x509_cert_url
  @client_x509_cert_url
end

#non_mock_environmentsObject

Returns the value of attribute non_mock_environments.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def non_mock_environments
  @non_mock_environments
end

#private_keyObject

Returns the value of attribute private_key.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def private_key
  @private_key
end

#private_key_idObject

Returns the value of attribute private_key_id.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def private_key_id
  @private_key_id
end

#project_idObject

Returns the value of attribute project_id.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def project_id
  @project_id
end

#token_uriObject

Returns the value of attribute token_uri.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def token_uri
  @token_uri
end

#typeObject

Returns the value of attribute type.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def type
  @type
end

#universe_domainObject

Returns the value of attribute universe_domain.



3
4
5
# File 'lib/active_translation/configuration.rb', line 3

def universe_domain
  @universe_domain
end