Class: DevelopWithPassion::Arrays::VisitorDetail
- Defined in:
- lib/developwithpassion_arrays/visitor_detail.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#visitor ⇒ Object
Returns the value of attribute visitor.
Instance Method Summary collapse
-
#initialize(name, visitor) ⇒ VisitorDetail
constructor
A new instance of VisitorDetail.
Constructor Details
#initialize(name, visitor) ⇒ VisitorDetail
Returns a new instance of VisitorDetail.
6 7 8 9 |
# File 'lib/developwithpassion_arrays/visitor_detail.rb', line 6 def initialize(name,visitor) @name = name @visitor = visitor end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/developwithpassion_arrays/visitor_detail.rb', line 4 def name @name end |
#visitor ⇒ Object
Returns the value of attribute visitor.
4 5 6 |
# File 'lib/developwithpassion_arrays/visitor_detail.rb', line 4 def visitor @visitor end |