Class: Kitely::Customer

Inherits:
Object
  • Object
show all
Defined in:
lib/kitely/customer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(details = {}) ⇒ Customer

Returns a new instance of Customer.



5
6
7
8
9
# File 'lib/kitely/customer.rb', line 5

def initialize(details = {})
  self.shipping_address = details[:shipping_address]
  self.phone = details[:phone]
  self.email = details[:email]
end

Instance Attribute Details

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/kitely/customer.rb', line 3

def email
  @email
end

#phoneObject

Returns the value of attribute phone.



3
4
5
# File 'lib/kitely/customer.rb', line 3

def phone
  @phone
end

#shipping_addressObject

Returns the value of attribute shipping_address.



3
4
5
# File 'lib/kitely/customer.rb', line 3

def shipping_address
  @shipping_address
end