Sha256: c678e7b7d13cb03d898c01cbd4995a2d4743fbc88f8e1bcfc9d7b9727cb725db

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

Stored size: 464 Bytes

Contents

# frozen_string_literal: true

require 'creditsafe/base_model'

module Creditsafe
  module Models
    class Address < BaseModel
      attributes :type, :simple_value, :street, :house_number,
                 :city, :postal_code, :province, :telephone, :direct_marketing_opt_out

      # rubocop:disable Naming/VariableNumber
      def line_1
        [street, house_number].compact.join(' ')
      end
      # rubocop:enable Naming/VariableNumber
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
creditsafe_connect-0.1.7 lib/creditsafe/models/address.rb
creditsafe_connect-0.1.6 lib/creditsafe/models/address.rb
creditsafe_connect-0.1.5 lib/creditsafe/models/address.rb
creditsafe_connect-0.1.4 lib/creditsafe/models/address.rb
creditsafe_connect-0.1.3 lib/creditsafe/models/address.rb