Sha256: a04f98164b9b153683f3b0cde12309f66367c04fade2814e3d84278a03133dee

Contents?: true

Size: 582 Bytes

Versions: 8

Compression:

Stored size: 582 Bytes

Contents

require 'genesis_ruby/errors/parameter_error'

module GenesisRuby
  module Api
    module Mixins
      module Requests
        module CustomerAddress
          # Mixin CustomerInfoAttributes
          module CustomerInfoAttributes

            attr_reader   :customer_email
            attr_accessor :customer_phone

            # Email of the customer
            def customer_email=(value)
              raise GenesisRuby::ParameterError unless value =~ /\A.+@.+\..+\Z/

              @customer_email = value
            end

          end
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
genesis_ruby-0.1.7 lib/genesis_ruby/api/mixins/requests/customer_address/customer_info_attributes.rb
genesis_ruby-0.1.6 lib/genesis_ruby/api/mixins/requests/customer_address/customer_info_attributes.rb
genesis_ruby-0.1.5 lib/genesis_ruby/api/mixins/requests/customer_address/customer_info_attributes.rb
genesis_ruby-0.1.4 lib/genesis_ruby/api/mixins/requests/customer_address/customer_info_attributes.rb
genesis_ruby-0.1.3 lib/genesis_ruby/api/mixins/requests/customer_address/customer_info_attributes.rb
genesis_ruby-0.1.2 lib/genesis_ruby/api/mixins/requests/customer_address/customer_info_attributes.rb
genesis_ruby-0.1.1 lib/genesis_ruby/api/mixins/requests/customer_address/customer_info_attributes.rb
genesis_ruby-0.1.0 lib/genesis_ruby/api/mixins/requests/customer_address/customer_info_attributes.rb