Class: IFormat::Configuration
- Inherits:
-
Object
- Object
- IFormat::Configuration
- Includes:
- Singleton
- Defined in:
- lib/iformat/configuration.rb
Overview
Defines constants and methods related to configuration
Constant Summary collapse
- DEFAULT_WSDL =
The WSDL URL that will be used to connect if none is set
'http://wsdl.iformat.pl/api.xml'
- DEFAULT_USERNAME =
The API usersname if none is set
nil
- DEFAULT_PASSWORD =
The API password if none is set
nil
- VALID_OPTIONS =
An array of valid keys in the options hash when configuring a IFormat::Client
[ :wsdl, :username, :password ]
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
27 28 29 30 |
# File 'lib/iformat/configuration.rb', line 27 def initialize reset! super end |
Instance Method Details
#[](key) ⇒ Object
32 33 34 |
# File 'lib/iformat/configuration.rb', line 32 def [](key) send key end |