Module: StripeMock::RequestHandlers::Balance

Included in:
Instance
Defined in:
lib/stripe_mock/request_handlers/balance.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



5
6
7
# File 'lib/stripe_mock/request_handlers/balance.rb', line 5

def Balance.included(klass)
  klass.add_handler 'get /v1/balance',                        :get_balance
end

Instance Method Details

#get_balance(route, method_url, params, headers) ⇒ Object



9
10
11
12
13
14
# File 'lib/stripe_mock/request_handlers/balance.rb', line 9

def get_balance(route, method_url, params, headers)
  route =~ method_url

  return_balance = Data.mock_balance()
  return_balance
end