Module: Traitify::Configuration
Constant Summary collapse
- VALID_OPTIONS_KEYS =
[ :host, :public_key, :secret_key, :version, :deck_id, :image_pack, :locale_key ].freeze
Instance Method Summary collapse
Instance Method Details
#configure {|_self| ... } ⇒ Object
15 16 17 |
# File 'lib/traitify/configuration.rb', line 15 def configure yield self end |
#options ⇒ Object
19 20 21 |
# File 'lib/traitify/configuration.rb', line 19 def Hash[VALID_OPTIONS_KEYS.collect{ |key| [key, send(key)] }] end |