Sha256: ac6bccc55d32a9fb6e588b50a70ef3c6a2a1fe45b274d4527eee3dfe50181015
Contents?: true
Size: 870 Bytes
Versions: 11
Compression:
Stored size: 870 Bytes
Contents
module Metrika module Api module Counters def get_counters self.get(self.counters_path)['counters'] end def create_counter(params) self.post(self.counters_path, params)['counter'] end def counters_path "/counters" end def get_counter(id) self.get(self.counter_path(id))['counter'] end def update_counter(id, params) self.put(self.counter_path(id), params)['counter'] end def delete_counter(id) self.delete(self.counter_path(id))['counter'] end def counter_path(id) "/counter/#{id}" end def check_counter(id) self.get(self.counter_check_path(id))['counter'] end def counter_check_path(id) "/counter/#{id}/check" end end end end
Version data entries
11 entries across 11 versions & 1 rubygems