Class: Kitely::Customer
- Inherits:
-
Object
- Object
- Kitely::Customer
- Defined in:
- lib/kitely/customer.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#shipping_address ⇒ Object
Returns the value of attribute shipping_address.
Instance Method Summary collapse
-
#initialize(details = {}) ⇒ Customer
constructor
A new instance of Customer.
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
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/kitely/customer.rb', line 3 def email @email end |
#phone ⇒ Object
Returns the value of attribute phone.
3 4 5 |
# File 'lib/kitely/customer.rb', line 3 def phone @phone end |
#shipping_address ⇒ Object
Returns the value of attribute shipping_address.
3 4 5 |
# File 'lib/kitely/customer.rb', line 3 def shipping_address @shipping_address end |