Module: Foto::Config
Defined Under Namespace
Modules: Defaults
Constant Summary collapse
- VALID_OPTIONS =
[:api_key, :base_uri]
Instance Method Summary collapse
Instance Method Details
#options ⇒ Object
24 25 26 |
# File 'lib/foto/config.rb', line 24 def Hash[ *VALID_OPTIONS.map {|option| [option, send(option)]}.flatten ] end |
#reset! ⇒ Object
19 20 21 22 |
# File 'lib/foto/config.rb', line 19 def reset! self.api_key = Defaults::API_KEY self.base_uri = Defaults::BASE_URI end |