Class: Person
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Attributes inherited from Main
Instance Method Summary collapse
-
#initialize(db) ⇒ Person
constructor
A new instance of Person.
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
#data ⇒ Object
Returns the value of attribute data.
37 38 39 |
# File 'lib/testLau.rb', line 37 def data @data end |