Class: BitsOnTheRun::Base
- Inherits:
-
Object
- Object
- BitsOnTheRun::Base
- Defined in:
- lib/bitsontherun.rb
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #method(method, params = {}) ⇒ Object
Constructor Details
#initialize ⇒ Base
Returns a new instance of Base.
21 22 23 |
# File 'lib/bitsontherun.rb', line 21 def initialize @params = {} end |
Instance Method Details
#method(method, params = {}) ⇒ Object
25 26 27 28 |
# File 'lib/bitsontherun.rb', line 25 def method(method, params = {}) @method = method.to_s @params.merge!(params.to_hash) end |