Class: Pin::Models::Customer
- Inherits:
-
Object
- Object
- Pin::Models::Customer
- Defined in:
- lib/pin/models/customer.rb
Instance Attribute Summary collapse
-
#card ⇒ Object
Returns the value of attribute card.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(params) ⇒ Customer
constructor
A new instance of Customer.
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
#card ⇒ Object
Returns the value of attribute card.
2 3 4 |
# File 'lib/pin/models/customer.rb', line 2 def card @card end |
#created_at ⇒ Object
Returns the value of attribute created_at.
2 3 4 |
# File 'lib/pin/models/customer.rb', line 2 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
2 3 4 |
# File 'lib/pin/models/customer.rb', line 2 def email @email end |
#token ⇒ Object
Returns the value of attribute token.
2 3 4 |
# File 'lib/pin/models/customer.rb', line 2 def token @token end |