Sha256: 3b41618d11f088ae3cabb0d7ec59f4515571824a7ae9ada8827fe39cbd041cea

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

module CorreiosSigep
  module DSL
    module Person
      def self.included(_base)
        %w(address area_code city complement email name neighborhood number
           phone postal_code reference state).each do |property|
          define_method(property) do |param|
            @instance.send("#{property}=", param)
          end
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
correios_sigep-2.2.0 lib/correios_sigep/dsl/person.rb
correios_sigep-2.1.1 lib/correios_sigep/dsl/person.rb
correios_sigep-2.1.0 lib/correios_sigep/dsl/person.rb
correios_sigep-2.0.0 lib/correios_sigep/dsl/person.rb
correios_sigep-1.0.2 lib/correios_sigep/dsl/person.rb
correios_sigep-1.0.1 lib/correios_sigep/dsl/person.rb
correios_sigep-1.0.0 lib/correios_sigep/dsl/person.rb
correios_sigep-0.5.0 lib/correios_sigep/dsl/person.rb
correios_sigep-0.4.0 lib/correios_sigep/dsl/person.rb