Class: ZuoraConnect::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_modelsObject

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_regionObject

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_queueObject

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_blockObject

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_localeObject

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_zoneObject

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_jobObject

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_idObject

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_adminObject

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_appinstanceObject

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_loginsObject

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_modeObject

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_optionsObject

Returns the value of attribute dev_mode_options.



10
11
12
# File 'lib/zuora_connect/configuration.rb', line 10

def dev_mode_options
  @dev_mode_options
end

#dev_mode_passObject

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_keyObject

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_userObject

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_metricsObject

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_typeObject

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_migrationsObject

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_dataObject

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

#modeObject

Returns the value of attribute mode.



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

def mode
  @mode
end

#oauth_client_idObject

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_uriObject

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_secretObject

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_keyObject

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_nameObject

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_nameObject

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_finishObject

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_connectObject

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_debugObject

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_endpointObject

Returns the value of attribute telegraf_endpoint.



6
7
8
# File 'lib/zuora_connect/configuration.rb', line 6

def telegraf_endpoint
  @telegraf_endpoint
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end