Class: Coalmine::Configuration
- Inherits:
-
Object
- Object
- Coalmine::Configuration
- Defined in:
- lib/coalmine/configuration.rb
Instance Attribute Summary collapse
-
#enabled_environments ⇒ Object
Returns the value of attribute enabled_environments.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#filters ⇒ Object
Returns the value of attribute filters.
-
#framework ⇒ Object
Returns the value of attribute framework.
-
#host ⇒ Object
Returns the value of attribute host.
-
#http_open_timeout ⇒ Object
Returns the value of attribute http_open_timeout.
-
#http_password ⇒ Object
Returns the value of attribute http_password.
-
#http_read_timeout ⇒ Object
Returns the value of attribute http_read_timeout.
-
#http_user ⇒ Object
Returns the value of attribute http_user.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#port ⇒ Object
Returns the value of attribute port.
-
#project_root ⇒ Object
Returns the value of attribute project_root.
-
#protocol ⇒ Object
Returns the value of attribute protocol.
-
#proxy_host ⇒ Object
Returns the value of attribute proxy_host.
-
#proxy_password ⇒ Object
Returns the value of attribute proxy_password.
-
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
-
#proxy_user ⇒ Object
Returns the value of attribute proxy_user.
-
#secure ⇒ Object
Returns the value of attribute secure.
-
#signature ⇒ Object
Returns the value of attribute signature.
-
#url ⇒ Object
Returns the value of attribute url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #secure? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/coalmine/configuration.rb', line 17 def initialize self.protocol = "https" self.host = "coalmineapp.com" self.port = 443 self.secure = true self.enabled_environments = ["production", "staging"] self.http_open_timeout = 3 self.http_read_timeout = 6 self.logger = Coalmine::Logger.new self.filters = [] end |
Instance Attribute Details
#enabled_environments ⇒ Object
Returns the value of attribute enabled_environments.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def enabled_environments @enabled_environments end |
#environment ⇒ Object
Returns the value of attribute environment.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def environment @environment end |
#filters ⇒ Object
Returns the value of attribute filters.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def filters @filters end |
#framework ⇒ Object
Returns the value of attribute framework.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def framework @framework end |
#host ⇒ Object
Returns the value of attribute host.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def host @host end |
#http_open_timeout ⇒ Object
Returns the value of attribute http_open_timeout.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def http_open_timeout @http_open_timeout end |
#http_password ⇒ Object
Returns the value of attribute http_password.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def http_password @http_password end |
#http_read_timeout ⇒ Object
Returns the value of attribute http_read_timeout.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def http_read_timeout @http_read_timeout end |
#http_user ⇒ Object
Returns the value of attribute http_user.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def http_user @http_user end |
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def logger @logger end |
#port ⇒ Object
Returns the value of attribute port.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def port @port end |
#project_root ⇒ Object
Returns the value of attribute project_root.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def project_root @project_root end |
#protocol ⇒ Object
Returns the value of attribute protocol.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def protocol @protocol end |
#proxy_host ⇒ Object
Returns the value of attribute proxy_host.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def proxy_host @proxy_host end |
#proxy_password ⇒ Object
Returns the value of attribute proxy_password.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def proxy_password @proxy_password end |
#proxy_port ⇒ Object
Returns the value of attribute proxy_port.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def proxy_port @proxy_port end |
#proxy_user ⇒ Object
Returns the value of attribute proxy_user.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def proxy_user @proxy_user end |
#secure ⇒ Object
Returns the value of attribute secure.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def secure @secure end |
#signature ⇒ Object
Returns the value of attribute signature.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def signature @signature end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def url @url end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/coalmine/configuration.rb', line 4 def version @version end |
Instance Method Details
#secure? ⇒ Boolean
35 36 37 |
# File 'lib/coalmine/configuration.rb', line 35 def secure? self.secure end |