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



19
20
21
# File 'lib/descartes/modules/seen.rb', line 19

def time
  @time
end

#whatObject

Returns the value of attribute what

Returns:

  • (Object)

    the current value of what



19
20
21
# File 'lib/descartes/modules/seen.rb', line 19

def what
  @what
end

#whereObject

Returns the value of attribute where

Returns:

  • (Object)

    the current value of where



19
20
21
# File 'lib/descartes/modules/seen.rb', line 19

def where
  @where
end

#whoObject

Returns the value of attribute who

Returns:

  • (Object)

    the current value of who



19
20
21
# File 'lib/descartes/modules/seen.rb', line 19

def who
  @who
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/descartes/modules/seen.rb', line 20

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