Class: ZuoraConnect::Configuration
- Inherits:
-
Object
- Object
- ZuoraConnect::Configuration
- Defined in:
- lib/zuora_connect/configuration.rb
Instance Attribute Summary collapse
-
#additional_apartment_models ⇒ Object
Returns the value of attribute additional_apartment_models.
-
#aws_region ⇒ Object
Returns the value of attribute aws_region.
-
#default_locale ⇒ Object
Returns the value of attribute default_locale.
-
#default_time_zone ⇒ Object
Returns the value of attribute default_time_zone.
-
#delayed_job ⇒ Object
Returns the value of attribute delayed_job.
-
#dev_mode_access_key_id ⇒ Object
Returns the value of attribute dev_mode_access_key_id.
-
#dev_mode_admin ⇒ Object
Returns the value of attribute dev_mode_admin.
-
#dev_mode_appinstance ⇒ Object
Returns the value of attribute dev_mode_appinstance.
-
#dev_mode_logins ⇒ Object
Returns the value of attribute dev_mode_logins.
-
#dev_mode_mode ⇒ Object
Returns the value of attribute dev_mode_mode.
-
#dev_mode_options ⇒ Object
Returns the value of attribute dev_mode_options.
-
#dev_mode_pass ⇒ Object
Returns the value of attribute dev_mode_pass.
-
#dev_mode_secret_access_key ⇒ Object
Returns the value of attribute dev_mode_secret_access_key.
-
#dev_mode_user ⇒ Object
Returns the value of attribute dev_mode_user.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#oauth_client_id ⇒ Object
Returns the value of attribute oauth_client_id.
-
#oauth_client_redirect_uri ⇒ Object
Returns the value of attribute oauth_client_redirect_uri.
-
#oauth_client_secret ⇒ Object
Returns the value of attribute oauth_client_secret.
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#s3_bucket_name ⇒ Object
Returns the value of attribute s3_bucket_name.
-
#s3_folder_name ⇒ Object
Returns the value of attribute s3_folder_name.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#url ⇒ Object
Returns the value of attribute url.
-
#use_s3 ⇒ Object
Returns the value of attribute use_s3.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/zuora_connect/configuration.rb', line 5 def initialize @default_locale = :en @default_time_zone = Time.zone @url = "https://connect.zuora.com" @mode = "Production" @delayed_job = false @use_s3 = false @private_key = ENV["CONNECT_KEY"] @additional_apartment_models = [] # OAuth Settings @oauth_client_id = "" @oauth_client_secret = "" @oauth_client_redirect_uri = "https://connect.zuora.com/" # DEV MODE OPTIONS @dev_mode_logins = { "target_login" => {"tenant_type" => "Zuora", "username" => "user", "password" => "pass", "url" => "url"} } @dev_mode_options = {"name" => {"config_name" => "name", "datatype" => "type", "value" => "value"}} @dev_mode_mode = "Universal" @dev_mode_appinstance = "1" @dev_mode_user = "test" @dev_mode_pass = "test" @dev_mode_admin = false @dev_mode_secret_access_key = nil @dev_mode_access_key_id = nil @aws_region = "us-west-2" @s3_bucket_name = "rbm-apps" @s3_folder_name = Rails.application.class.parent_name end |
Instance Attribute Details
#additional_apartment_models ⇒ Object
Returns the value of attribute additional_apartment_models.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def additional_apartment_models @additional_apartment_models end |
#aws_region ⇒ Object
Returns the value of attribute aws_region.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def aws_region @aws_region end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def default_locale @default_locale end |
#default_time_zone ⇒ Object
Returns the value of attribute default_time_zone.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def default_time_zone @default_time_zone end |
#delayed_job ⇒ Object
Returns the value of attribute delayed_job.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def delayed_job @delayed_job end |
#dev_mode_access_key_id ⇒ Object
Returns the value of attribute dev_mode_access_key_id.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def dev_mode_access_key_id @dev_mode_access_key_id end |
#dev_mode_admin ⇒ Object
Returns the value of attribute dev_mode_admin.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def dev_mode_admin @dev_mode_admin end |
#dev_mode_appinstance ⇒ Object
Returns the value of attribute dev_mode_appinstance.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def dev_mode_appinstance @dev_mode_appinstance end |
#dev_mode_logins ⇒ Object
Returns the value of attribute dev_mode_logins.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def dev_mode_logins @dev_mode_logins end |
#dev_mode_mode ⇒ Object
Returns the value of attribute dev_mode_mode.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def dev_mode_mode @dev_mode_mode end |
#dev_mode_options ⇒ Object
Returns the value of attribute dev_mode_options.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def @dev_mode_options end |
#dev_mode_pass ⇒ Object
Returns the value of attribute dev_mode_pass.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def dev_mode_pass @dev_mode_pass end |
#dev_mode_secret_access_key ⇒ Object
Returns the value of attribute dev_mode_secret_access_key.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def dev_mode_secret_access_key @dev_mode_secret_access_key end |
#dev_mode_user ⇒ Object
Returns the value of attribute dev_mode_user.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def dev_mode_user @dev_mode_user end |
#mode ⇒ Object
Returns the value of attribute mode.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def mode @mode end |
#oauth_client_id ⇒ Object
Returns the value of attribute oauth_client_id.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def oauth_client_id @oauth_client_id end |
#oauth_client_redirect_uri ⇒ Object
Returns the value of attribute oauth_client_redirect_uri.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def oauth_client_redirect_uri @oauth_client_redirect_uri end |
#oauth_client_secret ⇒ Object
Returns the value of attribute oauth_client_secret.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def oauth_client_secret @oauth_client_secret end |
#private_key ⇒ Object
Returns the value of attribute private_key.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def private_key @private_key end |
#s3_bucket_name ⇒ Object
Returns the value of attribute s3_bucket_name.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def s3_bucket_name @s3_bucket_name end |
#s3_folder_name ⇒ Object
Returns the value of attribute s3_folder_name.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def s3_folder_name @s3_folder_name end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def timeout @timeout end |
#url ⇒ Object
Returns the value of attribute url.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def url @url end |
#use_s3 ⇒ Object
Returns the value of attribute use_s3.
3 4 5 |
# File 'lib/zuora_connect/configuration.rb', line 3 def use_s3 @use_s3 end |