Module: RedLine::Customer::Settings

Defined in:
lib/redline/customer/settings.rb

Instance Method Summary collapse

Instance Method Details

#attribute_map(attributes = {}) ⇒ Object



8
9
10
# File 'lib/redline/customer/settings.rb', line 8

def attribute_map(attributes = {})
	self.braintree_customer_attribute_map = attributes
end

#custom_fields(*attributes) ⇒ Object



11
12
13
# File 'lib/redline/customer/settings.rb', line 11

def custom_fields(*attributes)
	self.braintree_customer_custom_fields = attributes
end

#set_default_customer_options ⇒ Object



4
5
6
7
# File 'lib/redline/customer/settings.rb', line 4

def set_default_customer_options
	attribute_map unless (send :braintree_customer_attribute_map)
	custom_fields unless (send :braintree_customer_custom_fields)
end