Sha256: 17e9a84c12b248bcab5ffa1ca8ea398419e52e7bdbdcac83923572dd8106829c

Contents?: true

Size: 983 Bytes

Versions: 47

Compression:

Stored size: 983 Bytes

Contents

module Centaman
  class Object::Customer < Centaman::Object
    attr_reader :phone
    # rubocop:disable Metrics/MethodLength
    def after_init(args)
      @phone = args["Address"]["HomePhone"]
    end

    def attributes
      [
        Centaman::Attribute.new(
          centaman_key: 'MemberCode',
          app_key: :member_code,
          type: :integer
        ),
        Centaman::Attribute.new(
          centaman_key: 'MemberNumber',
          app_key: :member_number,
          type: :integer
        ),
        Centaman::Attribute.new(
          centaman_key: 'FirstName',
          app_key: :first_name,
          type: :string
        ),
        Centaman::Attribute.new(
          centaman_key: 'LastName',
          app_key: :last_name,
          type: :string
        ),
        Centaman::Attribute.new(
          centaman_key: 'Email',
          app_key: :email,
          type: :string
        ),
      ]
    end
    # rubocop:enable Metrics/MethodLength
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
centaman-6.0.8 lib/centaman/object/customer.rb
centaman-6.0.7 lib/centaman/object/customer.rb
centaman-6.0.5 lib/centaman/object/customer.rb
centaman-6.0.4 lib/centaman/object/customer.rb
centaman-6.0.3 lib/centaman/object/customer.rb
centaman-6.0.2 lib/centaman/object/customer.rb
centaman-6.0.1 lib/centaman/object/customer.rb
centaman-6.0.0 lib/centaman/object/customer.rb
centaman-5.0.8 lib/centaman/object/customer.rb
centaman-5.0.7 lib/centaman/object/customer.rb
centaman-5.0.6 lib/centaman/object/customer.rb
centaman-5.0.5 lib/centaman/object/customer.rb
centaman-5.0.4 lib/centaman/object/customer.rb
centaman-5.0.3 lib/centaman/object/customer.rb
centaman-5.0.2 lib/centaman/object/customer.rb
centaman-5.0.1 lib/centaman/object/customer.rb
centaman-5.0.0 lib/centaman/object/customer.rb
centaman-4.0.5 lib/centaman/object/customer.rb
centaman-4.0.4 lib/centaman/object/customer.rb
centaman-4.0.3 lib/centaman/object/customer.rb