Class: Person

Inherits:
Main
  • Object
show all
Defined in:
lib/testLau.rb

Instance Attribute Summary collapse

Attributes inherited from Main

#db

Instance Method Summary collapse

Methods inherited from Main

#people, #starships, #vehicles

Methods included from Finder

#find_by_key_value, #find_by_name

Constructor Details

#initialize(db) ⇒ Person

Returns a new instance of Person.



39
40
41
# File 'lib/testLau.rb', line 39

def initialize(db)
  @data = db.people
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



37
38
39
# File 'lib/testLau.rb', line 37

def data
  @data
end