Class: BBServer::Params
- Inherits:
-
Object
- Object
- BBServer::Params
- Defined in:
- lib/bbserver/params.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
- #get(key) ⇒ Object
-
#initialize(data = {}) ⇒ Params
constructor
A new instance of Params.
Constructor Details
#initialize(data = {}) ⇒ Params
Returns a new instance of Params.
5 6 7 |
# File 'lib/bbserver/params.rb', line 5 def initialize(data = {}) @data = data end |
Instance Method Details
#[](key) ⇒ Object
9 10 11 |
# File 'lib/bbserver/params.rb', line 9 def [](key) @data[key.to_sym] end |
#get(key) ⇒ Object
13 14 15 |
# File 'lib/bbserver/params.rb', line 13 def get(key) self[key] end |