Class: RocketGate::Customer

Inherits:
Object
  • Object
show all
Includes:
Hashable, Validatable
Defined in:
lib/rocketgate/customer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Hashable

included, #to_hash

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

#cityObject

Returns the value of attribute city.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def city
  @city
end

#countryObject

Returns the value of attribute country.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def country
  @country
end

#emailObject

Returns the value of attribute email.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def id
  @id
end

#ip_addressObject

Returns the value of attribute ip_address.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def ip_address
  @ip_address
end

#last_nameObject

Returns the value of attribute last_name.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def last_name
  @last_name
end

#postal_codeObject

Returns the value of attribute postal_code.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def postal_code
  @postal_code
end

#stateObject

Returns the value of attribute state.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def state
  @state
end

#street_addressObject

Returns the value of attribute street_address.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def street_address
  @street_address
end

#usernameObject

Returns the value of attribute username.



5
6
7
# File 'lib/rocketgate/customer.rb', line 5

def username
  @username
end