Class: Seedify::ParamValue

Inherits:
Object
  • Object
show all
Defined in:
lib/seedify/param_value.rb

Class Method Summary collapse

Class Method Details

.get(param_name, options) ⇒ Object



4
5
6
7
8
9
# File 'lib/seedify/param_value.rb', line 4

def get(param_name, options)
  value = get_env_value(param_name) || get_default_value(options[:default])
  value = get_type_casted_value(value, options[:type])

  value
end