Sha256: 25f520c051fc93d3344d9b76bc33f8b766e3e0aaf596ffbeb58dbc216b6c1481

Contents?: true

Size: 449 Bytes

Versions: 11

Compression:

Stored size: 449 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cobrato-client-1.1.7 lib/cobrato/resources/payer.rb
cobrato-client-1.1.6 lib/cobrato/resources/payer.rb
cobrato-client-1.1.5 lib/cobrato/resources/payer.rb
cobrato-client-1.1.4 lib/cobrato/resources/payer.rb
cobrato-client-1.1.3 lib/cobrato/resources/payer.rb
cobrato-client-1.1.2 lib/cobrato/resources/payer.rb
cobrato-client-1.1.1 lib/cobrato/resources/payer.rb
cobrato-client-1.1.0 lib/cobrato/resources/payer.rb
cobrato-client-1.0.1 lib/cobrato/resources/payer.rb
cobrato-client-1.0.0 lib/cobrato/resources/payer.rb
cobrato-client-0.27.0 lib/cobrato/resources/payer.rb