Class: DevelopWithPassion::Arrays::VisitorDetail

Inherits:
Object
  • Object
show all
Defined in:
lib/developwithpassion_arrays/visitor_detail.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/developwithpassion_arrays/visitor_detail.rb', line 4

def name
  @name
end

#visitorObject

Returns the value of attribute visitor.



4
5
6
# File 'lib/developwithpassion_arrays/visitor_detail.rb', line 4

def visitor
  @visitor
end