Class: Buschtelefon::Gossip
- Inherits:
-
Object
- Object
- Buschtelefon::Gossip
- Defined in:
- lib/buschtelefon/gossip.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(message) ⇒ Gossip
constructor
A new instance of Gossip.
Constructor Details
#initialize(message) ⇒ Gossip
Returns a new instance of Gossip.
5 6 7 8 |
# File 'lib/buschtelefon/gossip.rb', line 5 def initialize() @created_at = Time.now.to_f = end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
3 4 5 |
# File 'lib/buschtelefon/gossip.rb', line 3 def created_at @created_at end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/buschtelefon/gossip.rb', line 3 def end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/buschtelefon/gossip.rb', line 10 def ==(other) == other. end |