Class: Dc::Metrics::Configuration
- Inherits:
-
Object
- Object
- Dc::Metrics::Configuration
- Defined in:
- lib/dc/metrics/configuration.rb
Instance Attribute Summary collapse
-
#caller ⇒ Object
Returns the value of attribute caller.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#gcp_credentials_path ⇒ Object
Returns the value of attribute gcp_credentials_path.
-
#gcp_project_id ⇒ Object
Returns the value of attribute gcp_project_id.
-
#pubsub_topic_name ⇒ Object
Returns the value of attribute pubsub_topic_name.
Instance Method Summary collapse
- #disable ⇒ Object
- #disabled? ⇒ Boolean
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 14 15 |
# File 'lib/dc/metrics/configuration.rb', line 8 def initialize @caller = nil @environment = nil @gcp_project_id = nil @pubsub_topic_name = nil @gcp_credentials_path = nil @disabled = false end |
Instance Attribute Details
#caller ⇒ Object
Returns the value of attribute caller.
6 7 8 |
# File 'lib/dc/metrics/configuration.rb', line 6 def caller @caller end |
#environment ⇒ Object
Returns the value of attribute environment.
6 7 8 |
# File 'lib/dc/metrics/configuration.rb', line 6 def environment @environment end |
#gcp_credentials_path ⇒ Object
Returns the value of attribute gcp_credentials_path.
6 7 8 |
# File 'lib/dc/metrics/configuration.rb', line 6 def gcp_credentials_path @gcp_credentials_path end |
#gcp_project_id ⇒ Object
Returns the value of attribute gcp_project_id.
6 7 8 |
# File 'lib/dc/metrics/configuration.rb', line 6 def gcp_project_id @gcp_project_id end |
#pubsub_topic_name ⇒ Object
Returns the value of attribute pubsub_topic_name.
6 7 8 |
# File 'lib/dc/metrics/configuration.rb', line 6 def pubsub_topic_name @pubsub_topic_name end |
Instance Method Details
#disable ⇒ Object
17 18 19 |
# File 'lib/dc/metrics/configuration.rb', line 17 def disable @disabled = true end |
#disabled? ⇒ Boolean
21 22 23 |
# File 'lib/dc/metrics/configuration.rb', line 21 def disabled? @disabled end |