Class: Fabrique::Test::Fixtures::Repository::Customer
- Inherits:
-
Object
- Object
- Fabrique::Test::Fixtures::Repository::Customer
- Defined in:
- lib/fabrique/test/fixtures/repository.rb
Instance Attribute Summary collapse
-
#date_of_birth ⇒ Object
readonly
Returns the value of attribute date_of_birth.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, date_of_birth: nil) ⇒ Customer
constructor
A new instance of Customer.
Constructor Details
#initialize(id: nil, name: nil, date_of_birth: nil) ⇒ Customer
13 14 15 |
# File 'lib/fabrique/test/fixtures/repository.rb', line 13 def initialize(id: nil, name: nil, date_of_birth: nil) @id, @name, @date_of_birth = id, name, date_of_birth end |
Instance Attribute Details
#date_of_birth ⇒ Object (readonly)
Returns the value of attribute date_of_birth.
11 12 13 |
# File 'lib/fabrique/test/fixtures/repository.rb', line 11 def date_of_birth @date_of_birth end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/fabrique/test/fixtures/repository.rb', line 11 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/fabrique/test/fixtures/repository.rb', line 11 def name @name end |