Class: Fabrique::Test::Fixtures::Repository::Customer

Inherits:
Object
  • Object
show all
Defined in:
lib/fabrique/test/fixtures/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_birthObject (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

#idObject (readonly)

Returns the value of attribute id.



11
12
13
# File 'lib/fabrique/test/fixtures/repository.rb', line 11

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



11
12
13
# File 'lib/fabrique/test/fixtures/repository.rb', line 11

def name
  @name
end