Module: Centro::API::Base

Defined in:
lib/centro/api/base.rb

Instance Method Summary collapse

Instance Method Details

#auth(method, *args) ⇒ Object



17
18
19
20
21
# File 'lib/centro/api/base.rb', line 17

def auth(method, *args)
  auth_connection.send(method, *args)
rescue Exception => e
  raise adapt_error(e)
end

#finance(method, *args) ⇒ Object



11
12
13
14
15
# File 'lib/centro/api/base.rb', line 11

def finance(method, *args)
  finance_connection.send(method, *args)
rescue Exception => e
  raise adapt_error(e)
end

#mms(method, *args) ⇒ Object



5
6
7
8
9
# File 'lib/centro/api/base.rb', line 5

def mms(method, *args)
  mms_connection.send(method, *args)
rescue Exception => e
  raise adapt_error(e)
end

#planner(method, *args) ⇒ Object



23
24
25
26
27
# File 'lib/centro/api/base.rb', line 23

def planner(method, *args)
  planner_connection.send(method, *args)
rescue Exception => e
  raise adapt_error(e)
end