Module: Spear::Configuration
- Included in:
- Spear
- Defined in:
- lib/spear/configuration.rb
Defined Under Namespace
Modules: Options
Constant Summary collapse
- @@options =
{}
Instance Method Summary collapse
Instance Method Details
#config(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/spear/configuration.rb', line 5 def config(={}) set_defaults() raise Spear::ParametersRequired.new('DeveloperKey') if dev_key.nil? if save_api? and (!Options.instance_methods.include?(:project) or project.nil?) raise Spear::ParametersNotValid.new('You must specify a project name, if you want save api info.') end # add plugins to request include_plugins end |