Sha256: 0726d573d7d13ce18220578a5e39228517f05afbeb65b0bb52c39fa274e46fa8

Contents?: true

Size: 570 Bytes

Versions: 4

Compression:

Stored size: 570 Bytes

Contents

# frozen_string_literal: true

module Brazil
  module Cep
    # Address class
    class Address
      attr_reader :zipcode, :state, :city, :neighborhood, :street, :complement, :meta

      def initialize(**arguments)
        @zipcode = arguments[:zipcode]
        @state = arguments[:state]
        @city = arguments[:city]
        @neighborhood = arguments[:neighborhood]
        @street = arguments[:street]
        @complement = arguments[:complement]
        @meta = arguments[:meta]
      end

      def provider
        meta[:provider]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
brazil-cep-0.5.0 lib/brazil_cep/address.rb
brazil-cep-0.4.0 lib/brazil_cep/address.rb
brazil-cep-0.3.0 lib/brazil_cep/address.rb
brazil-cep-0.2.0 lib/brazil_cep/address.rb