Class: Baldur::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_pathObject

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
end

#dependency_dataset_name_resolverObject

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_brandObject

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_keyObject

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_messageObject

Returns the value of attribute unavailable_fallback_message.



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

def unavailable_fallback_message
  @unavailable_fallback_message
end

#warning_dependency_resolverObject

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