Class: Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/configuration.rb', line 18

def initialize
  @callback_url = nil
  @debug = false
  @sandbox = false
  @webhook = nil
  @webhook_method = "POST"
  @mitm_server = nil
  @secrets_path = nil
  @min_amount = 10000
  @webpanel_path = nil
  @username = nil
  @password = nil
  @allowed_ips = ['*']
  @allow_when = -> { true }
  @captcha = false
  @model = nil
  @database_url = nil
end

Instance Attribute Details

#allow_whenObject

Returns the value of attribute allow_when.



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

def allow_when
  @allow_when
end

#allowed_ipsObject

Returns the value of attribute allowed_ips.



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

def allowed_ips
  @allowed_ips
end

#callback_urlObject

Returns the value of attribute callback_url.



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

def callback_url
  @callback_url
end

#captchaObject

Returns the value of attribute captcha.



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

def captcha
  @captcha
end

#database_urlObject

Returns the value of attribute database_url.



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

def database_url
  @database_url
end

#debugObject

Returns the value of attribute debug.



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

def debug
  @debug
end

#min_amountObject

Returns the value of attribute min_amount.



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

def min_amount
  @min_amount
end

#mitm_serverObject

Returns the value of attribute mitm_server.



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

def mitm_server
  @mitm_server
end

#modelObject

Returns the value of attribute model.



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

def model
  @model
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#sandboxObject

Returns the value of attribute sandbox.



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

def sandbox
  @sandbox
end

#secrets_pathObject

Returns the value of attribute secrets_path.



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

def secrets_path
  @secrets_path
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

#webhookObject

Returns the value of attribute webhook.



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

def webhook
  @webhook
end

#webhook_methodObject

Returns the value of attribute webhook_method.



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

def webhook_method
  @webhook_method
end

#webpanel_pathObject

Returns the value of attribute webpanel_path.



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

def webpanel_path
  @webpanel_path
end