Class: Greensky::ConfigurableDefault

Inherits:
Struct
  • Object
show all
Defined in:
lib/greensky/long_application.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#config_keyObject

Returns the value of attribute config_key

Returns:

  • (Object)

    the current value of config_key



4
5
6
# File 'lib/greensky/long_application.rb', line 4

def config_key
  @config_key
end

Instance Method Details

#call(_, attribute) ⇒ Object



5
6
7
# File 'lib/greensky/long_application.rb', line 5

def call(_, attribute)
  Greensky.config[config_key || attribute.name]
end