class Ucenter::Tools::Base
The Base
class of API
Public Class Methods
new(client)
click to toggle source
# File lib/ucenter/tools/base.rb, line 5 def initialize(client) @client = client end
Public Instance Methods
get(path, opts={}, &block)
click to toggle source
# File lib/ucenter/tools/base.rb, line 9 def get(path, opts={}, &block) request(:get, path, opts, &block) end
post(path, opts={}, &block)
click to toggle source
# File lib/ucenter/tools/base.rb, line 13 def post(path, opts={}, &block) request(:post, path, opts, &block) end