Class: Descartes::Seen::SeenStruct

Inherits:
Struct
  • Object
show all
Defined in:
lib/descartes/modules/seen.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



6
7
8
# File 'lib/descartes/modules/seen.rb', line 6

def time
  @time
end

#whatObject

Returns the value of attribute what

Returns:

  • (Object)

    the current value of what



6
7
8
# File 'lib/descartes/modules/seen.rb', line 6

def what
  @what
end

#whereObject

Returns the value of attribute where

Returns:

  • (Object)

    the current value of where



6
7
8
# File 'lib/descartes/modules/seen.rb', line 6

def where
  @where
end

#whoObject

Returns the value of attribute who

Returns:

  • (Object)

    the current value of who



6
7
8
# File 'lib/descartes/modules/seen.rb', line 6

def who
  @who
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/descartes/modules/seen.rb', line 7

def to_s
  "[#{time.asctime}] #{who} was seen in #{where} saying #{what}"
end