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.



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_modelsObject

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_regionObject

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_localeObject

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_zoneObject

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_jobObject

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_idObject

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_adminObject

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_appinstanceObject

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_loginsObject

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_modeObject

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_optionsObject

Returns the value of attribute dev_mode_options.



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

def dev_mode_options
  @dev_mode_options
end

#dev_mode_passObject

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_keyObject

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_userObject

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

#modeObject

Returns the value of attribute mode.



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

def mode
  @mode
end

#oauth_client_idObject

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_uriObject

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_secretObject

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_keyObject

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_nameObject

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_nameObject

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

#timeoutObject

Returns the value of attribute timeout.



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

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end

#use_s3Object

Returns the value of attribute use_s3.



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

def use_s3
  @use_s3
end