Sha256: efd2885e2b17f750bf52e4535c3f848943ad60dc6e7b41ac1f6eab919e2c692d

Contents?: true

Size: 863 Bytes

Versions: 11

Compression:

Stored size: 863 Bytes

Contents

module Cobrato
  module Entities
    class Payer < Base
      attribute :id,                       Integer
      attribute :national_identifier_type, String
      attribute :national_identifier,      String
      attribute :name,                     String
      attribute :zipcode,                  String
      attribute :city,                     String
      attribute :state,                    String
      attribute :neighbourhood,            String
      attribute :number,                   String
      attribute :complement,               String
      attribute :street,                   String

      %i[national_identifier name].each do |method|
        define_method method do |*args|
          puts "Warning: '#{self.class.name}##{method}' is deprecated. See API docs for more info."
          super(*args)
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

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