require 'lightspeed_restaurant/base'

module LightspeedRestaurant
  class Customer < LightspeedRestaurant::Base
    attr_accessor :id,
                  :city,
                  :country,
                  :deliveryCity,
                  :deliveryCountry,
                  :deliveryStreet,
                  :deliveryStreetNumber,
                  :deliveryZip,
                  :email,
                  :firstName,
                  :lastName,
                  :street,
                  :streetNumber,
                  :telephone,
                  :zip,
                  :links

    def full_name
      "#{firstName} #{lastName}"
    end
  end
end

require 'lightspeed_restaurant/base'

module LightspeedRestaurant
  class Customer < LightspeedRestaurant::Base
    def self.attributes
      [:id,
       :city,
       :country,
       :deliveryCity,
       :deliveryCountry,
       :deliveryStreet,
       :deliveryStreetNumber,
       :deliveryZip,
       :email,
       :firstName,
       :lastName,
       :street,
       :streetNumber,
       :telephone,
       :zip,
       :links].freeze
    end

    attr_accessor(*attributes)
  end
end

Create attr_accessor based on list
Create attr_accessor based on list
