Class: Baldur::Configuration
- Inherits:
-
Object
- Object
- Baldur::Configuration
- Defined in:
- lib/baldur/configuration.rb
Instance Attribute Summary collapse
-
#default_google_sign_in_path ⇒ Object
Returns the value of attribute default_google_sign_in_path.
-
#dependency_dataset_name_resolver ⇒ Object
Returns the value of attribute dependency_dataset_name_resolver.
-
#marketing_brand ⇒ Object
Returns the value of attribute marketing_brand.
-
#theme_storage_key ⇒ Object
Returns the value of attribute theme_storage_key.
-
#unavailable_fallback_message ⇒ Object
Returns the value of attribute unavailable_fallback_message.
-
#warning_dependency_resolver ⇒ Object
Returns the value of attribute warning_dependency_resolver.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/baldur/configuration.rb', line 10 def initialize @warning_dependency_resolver = ->(_warning_keys) { [] } @dependency_dataset_name_resolver = ->(dataset_key) { dataset_key.to_s.humanize } @unavailable_fallback_message = "Missing metric or raw data required to compute this value." @marketing_brand = { name: "Brand", wordmark: "Brand", logo_src: "/icon.png", logo_alt: "Brand logo" } @default_google_sign_in_path = nil @theme_storage_key = "baldur.theme" end |
Instance Attribute Details
#default_google_sign_in_path ⇒ Object
Returns the value of attribute default_google_sign_in_path.
3 4 5 |
# File 'lib/baldur/configuration.rb', line 3 def default_google_sign_in_path @default_google_sign_in_path end |
#dependency_dataset_name_resolver ⇒ Object
Returns the value of attribute dependency_dataset_name_resolver.
3 4 5 |
# File 'lib/baldur/configuration.rb', line 3 def dependency_dataset_name_resolver @dependency_dataset_name_resolver end |
#marketing_brand ⇒ Object
Returns the value of attribute marketing_brand.
3 4 5 |
# File 'lib/baldur/configuration.rb', line 3 def marketing_brand @marketing_brand end |
#theme_storage_key ⇒ Object
Returns the value of attribute theme_storage_key.
3 4 5 |
# File 'lib/baldur/configuration.rb', line 3 def theme_storage_key @theme_storage_key end |
#unavailable_fallback_message ⇒ Object
Returns the value of attribute unavailable_fallback_message.
3 4 5 |
# File 'lib/baldur/configuration.rb', line 3 def @unavailable_fallback_message end |
#warning_dependency_resolver ⇒ Object
Returns the value of attribute warning_dependency_resolver.
3 4 5 |
# File 'lib/baldur/configuration.rb', line 3 def warning_dependency_resolver @warning_dependency_resolver end |