lib/cobrato/resources/payer.rb in cobrato-client-0.26.0 vs lib/cobrato/resources/payer.rb in cobrato-client-0.27.0

- old
+ new

@@ -1,7 +1,20 @@ module Cobrato module Resources class Payer < Base crud :show, :list, :create, :update + + %w[show list create update].each do |method| + define_method method do |*args| + puts "Warning: The #{self.class.name}##{method} method is depracated. See Cobrato API docs for more info" + super(*args) + end + end + + protected + + def irregular_resource_name + "people" + end end end -end \ No newline at end of file +end