Class: Herodotus::Collector::Change
- Inherits:
-
Struct
- Object
- Struct
- Herodotus::Collector::Change
- Defined in:
- lib/herodotus/collector.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#message ⇒ Object
Returns the value of attribute message.
-
#time ⇒ Object
Returns the value of attribute time.
Instance Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
13 14 15 |
# File 'lib/herodotus/collector.rb', line 13 def end |
#message ⇒ Object
Returns the value of attribute message
13 14 15 |
# File 'lib/herodotus/collector.rb', line 13 def end |
#time ⇒ Object
Returns the value of attribute time
13 14 15 |
# File 'lib/herodotus/collector.rb', line 13 def time @time end |
Instance Method Details
#log_entry ⇒ Object
18 19 20 21 22 |
# File 'lib/herodotus/collector.rb', line 18 def log_entry "#{time.to_date} #{pretty_author}" + "\n#{message}" + "\n\n" end |
#pretty_author ⇒ Object
14 15 16 |
# File 'lib/herodotus/collector.rb', line 14 def "#{author.name} <#{author.email}>" end |