<commit_before>module Nominal
  module InvoiceAttributes

    class IssuedAddress

      attr_accessor :country,
                    :street,
                    :municipality,
                    :state,
                    :exterior_number,
                    :interior_number,
                    :neighborhood,
                    :locality,
                    :reference,
                    :postal_code

      def initialize(country,
                     street,
                     municipality,
                     state,
                     exterior_number,
                     interior_number,
                     neighborhood,
                     locality,
                     reference,
                     postal_code)

        @country = country
        @street = street
        @municipality = municipality
        @state = state
        @exterior_number = exterior_number
        @interior_number = interior_number
        @neighborhood = neighborhood
        @locality = locality
        @reference = reference
        @postal_code = postal_code

      end

      def to_xml(xml)
        address_attr = {}
        address_attr[:pais] = self.country unless self.country.nil?
        address_attr[:calle] = self.street unless self.street.nil?
        address_attr[:municipio]= self.municipality unless self.municipality.nil?
        address_attr[:estado] = self.state unless self.state.nil?<commit_msg>Se migra issued_address a propiedades con hash.<commit_after>module Nominal
  module InvoiceAttributes

    class IssuedAddress
        include Properties

        has_properties :country,
                    :street,
                    :municipality,
                    :state,
                    :exterior_number,
                    :interior_number,
                    :neighborhood,
                    :locality,
                    :reference,
                    :postal_code

      def to_xml(xml)
        address_attr = {}
        address_attr[:pais] = self.country unless self.country.nil?
        address_attr[:calle] = self.street unless self.street.nil?
        address_attr[:municipio]= self.municipality unless self.municipality.nil?
        address_attr[:estado] = self.state unless self.state.nil?
{'fraction_non_alphanumeric': 0.06675567423230974, 'fraction_numerical': 0.0, 'mean_word_length': 1.4120171673819744, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4325470', 'n_tokens_mistral': 576, 'n_tokens_neox': 528, 'n_words': 111}