Class: CodeStats::Metrics::Reporter::ConfigStore
- Inherits:
-
Object
- Object
- CodeStats::Metrics::Reporter::ConfigStore
- Defined in:
- lib/code_stats/metrics/reporter/config_store.rb
Instance Attribute Summary collapse
-
#ci ⇒ Object
readonly
Returns the value of attribute ci.
-
#metrics_configs ⇒ Object
readonly
Returns the value of attribute metrics_configs.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ ConfigStore
constructor
A new instance of ConfigStore.
Constructor Details
#initialize ⇒ ConfigStore
Returns a new instance of ConfigStore.
6 7 8 9 10 11 12 |
# File 'lib/code_stats/metrics/reporter/config_store.rb', line 6 def initialize configs = ConfigLoader.load_file @metrics_configs = configs[:metrics_configs] @ci = configs['ci'] @token = configs['token'] @url = configs['url'] end |
Instance Attribute Details
#ci ⇒ Object (readonly)
Returns the value of attribute ci.
5 6 7 |
# File 'lib/code_stats/metrics/reporter/config_store.rb', line 5 def ci @ci end |
#metrics_configs ⇒ Object (readonly)
Returns the value of attribute metrics_configs.
5 6 7 |
# File 'lib/code_stats/metrics/reporter/config_store.rb', line 5 def metrics_configs @metrics_configs end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
5 6 7 |
# File 'lib/code_stats/metrics/reporter/config_store.rb', line 5 def token @token end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/code_stats/metrics/reporter/config_store.rb', line 5 def url @url end |