Class: Descartes::Seen::SeenStruct
- Inherits:
-
Struct
- Object
- Struct
- Descartes::Seen::SeenStruct
- Defined in:
- lib/descartes/modules/seen.rb
Instance Attribute Summary collapse
-
#time ⇒ Object
Returns the value of attribute time.
-
#what ⇒ Object
Returns the value of attribute what.
-
#where ⇒ Object
Returns the value of attribute where.
-
#who ⇒ Object
Returns the value of attribute who.
Instance Method Summary collapse
Instance Attribute Details
#time ⇒ Object
Returns the value of attribute time
6 7 8 |
# File 'lib/descartes/modules/seen.rb', line 6 def time @time end |
#what ⇒ Object
Returns the value of attribute what
6 7 8 |
# File 'lib/descartes/modules/seen.rb', line 6 def what @what end |
#where ⇒ Object
Returns the value of attribute where
6 7 8 |
# File 'lib/descartes/modules/seen.rb', line 6 def where @where end |
#who ⇒ Object
Returns the value of attribute who
6 7 8 |
# File 'lib/descartes/modules/seen.rb', line 6 def who @who end |
Instance Method Details
#to_s ⇒ Object
7 8 9 |
# File 'lib/descartes/modules/seen.rb', line 7 def to_s "[#{time.asctime}] #{who} was seen in #{where} saying #{what}" end |