Class: Bookafy::Model::Customer

Inherits:
Object
  • Object
show all
Includes:
Timestamps
Defined in:
lib/bookafy/model/customer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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_atObject

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#idObject

Returns the value of attribute id.



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#soft_deleteObject

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_atObject

Returns the value of attribute updated_at.



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

def updated_at
  @updated_at
end