Class: BitsOnTheRun::Base

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

Direct Known Subclasses

Call, Store

Instance Method Summary collapse

Constructor Details

#initializeBase

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