Class: BBServer::Params

Inherits:
Object
  • Object
show all
Defined in:
lib/bbserver/params.rb

Instance Method Summary collapse

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