Class: RocketGate::Customer
- Inherits:
-
Object
- Object
- RocketGate::Customer
- Includes:
- Hashable, Validatable
- Defined in:
- lib/rocketgate/customer.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
Returns the value of attribute city.
-
#country ⇒ Object
Returns the value of attribute country.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#ip_address ⇒ Object
Returns the value of attribute ip_address.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#state ⇒ Object
Returns the value of attribute state.
-
#street_address ⇒ Object
Returns the value of attribute street_address.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Customer
constructor
A new instance of Customer.
Methods included from Hashable
Methods included from Validatable
included, #invalid_attributes, #valid?, #validate!
Constructor Details
#initialize(*args) ⇒ Customer
Returns a new instance of Customer.
24 25 26 27 |
# File 'lib/rocketgate/customer.rb', line 24 def initialize(*args) @first_name, @last_name, @street_address, @city, @state, @postal_code, @country, @email, @username, @ip_address, @id = *args end |
Instance Attribute Details
#city ⇒ Object
Returns the value of attribute city.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def city @city end |
#country ⇒ Object
Returns the value of attribute country.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def country @country end |
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def id @id end |
#ip_address ⇒ Object
Returns the value of attribute ip_address.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def ip_address @ip_address end |
#last_name ⇒ Object
Returns the value of attribute last_name.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def last_name @last_name end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def postal_code @postal_code end |
#state ⇒ Object
Returns the value of attribute state.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def state @state end |
#street_address ⇒ Object
Returns the value of attribute street_address.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def street_address @street_address end |
#username ⇒ Object
Returns the value of attribute username.
5 6 7 |
# File 'lib/rocketgate/customer.rb', line 5 def username @username end |