Class: Bookafy::Model::Customer
- Inherits:
-
Object
- Object
- Bookafy::Model::Customer
- Includes:
- Timestamps
- Defined in:
- lib/bookafy/model/customer.rb
Instance Attribute Summary collapse
-
#client_id ⇒ Object
Returns the value of attribute client_id.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email ⇒ Object
Returns the value of attribute email.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#soft_delete ⇒ Object
Returns the value of attribute soft_delete.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Customer
constructor
A new instance of Customer.
Constructor Details
#initialize(attrs = {}) ⇒ Customer
Returns a new instance of Customer.
7 8 9 10 11 |
# File 'lib/bookafy/model/customer.rb', line 7 def initialize(attrs = {}) attrs.each do |attr, val| send("#{attr}=", val) if respond_to?("#{attr}=") end end |
Instance Attribute Details
#client_id ⇒ Object
Returns the value of attribute client_id.
5 6 7 |
# File 'lib/bookafy/model/customer.rb', line 5 def client_id @client_id end |
#created_at ⇒ Object
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/bookafy/model/customer.rb', line 5 def created_at @created_at end |
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'lib/bookafy/model/customer.rb', line 5 def email @email end |
#id ⇒ Object
Returns the value of attribute id.
5 6 7 |
# File 'lib/bookafy/model/customer.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/bookafy/model/customer.rb', line 5 def name @name end |
#soft_delete ⇒ Object
Returns the value of attribute soft_delete.
5 6 7 |
# File 'lib/bookafy/model/customer.rb', line 5 def soft_delete @soft_delete end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
5 6 7 |
# File 'lib/bookafy/model/customer.rb', line 5 def updated_at @updated_at end |