travis-api/lib/travis/api/app/helpers/services.rb
2012-10-05 13:06:50 +02:00

26 lines
460 B
Ruby

require 'travis/api/app'
class Travis::Api::App
module Helpers
module Services
def all(params)
service(services_namespace, :all, params)
end
def one(params)
service(services_namespace, :one, params)
end
def update(params)
service(services_namespace, :update, params)
end
private
def services_namespace
self.class.name.split('::').last
end
end
end
end