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.
-
#blpop_queue ⇒ Object
Returns the value of attribute blpop_queue.
-
#custom_prometheus_update_block ⇒ Object
Returns the value of attribute custom_prometheus_update_block.
-
#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.
-
#enable_metrics ⇒ Object
Returns the value of attribute enable_metrics.
-
#encryption_type ⇒ Object
Returns the value of attribute encryption_type.
-
#insert_migrations ⇒ Object
Returns the value of attribute insert_migrations.
-
#local_task_data ⇒ Object
Returns the value of attribute local_task_data.
-
#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.
-
#silencer_resque_finish ⇒ Object
Returns the value of attribute silencer_resque_finish.
-
#skip_connect ⇒ Object
Returns the value of attribute skip_connect.
-
#telegraf_debug ⇒ Object
Returns the value of attribute telegraf_debug.
-
#telegraf_endpoint ⇒ Object
Returns the value of attribute telegraf_endpoint.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/zuora_connect/configuration.rb', line 12 def initialize @default_locale = :en @default_time_zone = Time.zone @url = "https://connect.zuora.com" @mode = "Production" @delayed_job = false @private_key = ENV["CONNECT_KEY"] @additional_apartment_models = [] @silencer_resque_finish = true @blpop_queue = false @insert_migrations = true @skip_connect = false @encryption_type = :direct @local_task_data = false # Setting the app name for telegraf write @enable_metrics = false @telegraf_endpoint = 'udp://telegraf-app-metrics.monitoring.svc.cluster.local:8094' @telegraf_debug = false # 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 = ZuoraConnect.app_name end |
Instance Attribute Details
#additional_apartment_models ⇒ Object
Returns the value of attribute additional_apartment_models.
4 5 6 |
# File 'lib/zuora_connect/configuration.rb', line 4 def additional_apartment_models @additional_apartment_models end |
#aws_region ⇒ Object
Returns the value of attribute aws_region.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def aws_region @aws_region end |
#blpop_queue ⇒ Object
Returns the value of attribute blpop_queue.
6 7 8 |
# File 'lib/zuora_connect/configuration.rb', line 6 def blpop_queue @blpop_queue end |
#custom_prometheus_update_block ⇒ Object
Returns the value of attribute custom_prometheus_update_block.
6 7 8 |
# File 'lib/zuora_connect/configuration.rb', line 6 def custom_prometheus_update_block @custom_prometheus_update_block end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
4 5 6 |
# File 'lib/zuora_connect/configuration.rb', line 4 def default_locale @default_locale end |
#default_time_zone ⇒ Object
Returns the value of attribute default_time_zone.
4 5 6 |
# File 'lib/zuora_connect/configuration.rb', line 4 def default_time_zone @default_time_zone end |
#delayed_job ⇒ Object
Returns the value of attribute delayed_job.
4 5 6 |
# File 'lib/zuora_connect/configuration.rb', line 4 def delayed_job @delayed_job end |
#dev_mode_access_key_id ⇒ Object
Returns the value of attribute dev_mode_access_key_id.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def dev_mode_access_key_id @dev_mode_access_key_id end |
#dev_mode_admin ⇒ Object
Returns the value of attribute dev_mode_admin.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def dev_mode_admin @dev_mode_admin end |
#dev_mode_appinstance ⇒ Object
Returns the value of attribute dev_mode_appinstance.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def dev_mode_appinstance @dev_mode_appinstance end |
#dev_mode_logins ⇒ Object
Returns the value of attribute dev_mode_logins.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def dev_mode_logins @dev_mode_logins end |
#dev_mode_mode ⇒ Object
Returns the value of attribute dev_mode_mode.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def dev_mode_mode @dev_mode_mode end |
#dev_mode_options ⇒ Object
Returns the value of attribute dev_mode_options.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def @dev_mode_options end |
#dev_mode_pass ⇒ Object
Returns the value of attribute dev_mode_pass.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def dev_mode_pass @dev_mode_pass end |
#dev_mode_secret_access_key ⇒ Object
Returns the value of attribute dev_mode_secret_access_key.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def dev_mode_secret_access_key @dev_mode_secret_access_key end |
#dev_mode_user ⇒ Object
Returns the value of attribute dev_mode_user.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def dev_mode_user @dev_mode_user end |
#enable_metrics ⇒ Object
Returns the value of attribute enable_metrics.
6 7 8 |
# File 'lib/zuora_connect/configuration.rb', line 6 def enable_metrics @enable_metrics end |
#encryption_type ⇒ Object
Returns the value of attribute encryption_type.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def encryption_type @encryption_type end |
#insert_migrations ⇒ Object
Returns the value of attribute insert_migrations.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def insert_migrations @insert_migrations end |
#local_task_data ⇒ Object
Returns the value of attribute local_task_data.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def local_task_data @local_task_data end |
#mode ⇒ Object
Returns the value of attribute mode.
4 5 6 |
# File 'lib/zuora_connect/configuration.rb', line 4 def mode @mode end |
#oauth_client_id ⇒ Object
Returns the value of attribute oauth_client_id.
8 9 10 |
# File 'lib/zuora_connect/configuration.rb', line 8 def oauth_client_id @oauth_client_id end |
#oauth_client_redirect_uri ⇒ Object
Returns the value of attribute oauth_client_redirect_uri.
8 9 10 |
# File 'lib/zuora_connect/configuration.rb', line 8 def oauth_client_redirect_uri @oauth_client_redirect_uri end |
#oauth_client_secret ⇒ Object
Returns the value of attribute oauth_client_secret.
8 9 10 |
# File 'lib/zuora_connect/configuration.rb', line 8 def oauth_client_secret @oauth_client_secret end |
#private_key ⇒ Object
Returns the value of attribute private_key.
4 5 6 |
# File 'lib/zuora_connect/configuration.rb', line 4 def private_key @private_key end |
#s3_bucket_name ⇒ Object
Returns the value of attribute s3_bucket_name.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def s3_bucket_name @s3_bucket_name end |
#s3_folder_name ⇒ Object
Returns the value of attribute s3_folder_name.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def s3_folder_name @s3_folder_name end |
#silencer_resque_finish ⇒ Object
Returns the value of attribute silencer_resque_finish.
6 7 8 |
# File 'lib/zuora_connect/configuration.rb', line 6 def silencer_resque_finish @silencer_resque_finish end |
#skip_connect ⇒ Object
Returns the value of attribute skip_connect.
10 11 12 |
# File 'lib/zuora_connect/configuration.rb', line 10 def skip_connect @skip_connect end |
#telegraf_debug ⇒ Object
Returns the value of attribute telegraf_debug.
6 7 8 |
# File 'lib/zuora_connect/configuration.rb', line 6 def telegraf_debug @telegraf_debug end |
#telegraf_endpoint ⇒ Object
Returns the value of attribute telegraf_endpoint.
6 7 8 |
# File 'lib/zuora_connect/configuration.rb', line 6 def telegraf_endpoint @telegraf_endpoint end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/zuora_connect/configuration.rb', line 4 def url @url end |