Class: RubySipgate::Config
- Inherits:
-
Object
- Object
- RubySipgate::Config
- Defined in:
- lib/ruby_sipgate/config.rb
Constant Summary collapse
- @@params =
{username:"",password:"",debug:false,verbose:false}
Class Method Summary collapse
Class Method Details
.get(*key) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/ruby_sipgate/config.rb', line 5 def self.get *key if key.empty? return @@params elsif key.size == 1 return @@params[key.first] end return nil end |
.set(key, value) ⇒ Object
14 15 16 |
# File 'lib/ruby_sipgate/config.rb', line 14 def self.set hash @@params = hash end |