Class: Pin::Models::Customer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Customer

Returns a new instance of Customer.



4
5
6
# File 'lib/pin/models/customer.rb', line 4

def initialize(params)
  params.each { |k, v| instance_variable_set("@#{k}", v) unless v.nil? }
end

Instance Attribute Details

#cardObject

Returns the value of attribute card.



2
3
4
# File 'lib/pin/models/customer.rb', line 2

def card
  @card
end

#created_atObject

Returns the value of attribute created_at.



2
3
4
# File 'lib/pin/models/customer.rb', line 2

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email.



2
3
4
# File 'lib/pin/models/customer.rb', line 2

def email
  @email
end

#tokenObject

Returns the value of attribute token.



2
3
4
# File 'lib/pin/models/customer.rb', line 2

def token
  @token
end