Class: ProMonitor::Publisher
- Inherits:
-
Object
- Object
- ProMonitor::Publisher
- Defined in:
- lib/pro_monitor/publisher.rb
Instance Attribute Summary collapse
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
Instance Method Summary collapse
-
#initialize(changes) ⇒ Publisher
constructor
A new instance of Publisher.
- #publish ⇒ Object
Constructor Details
#initialize(changes) ⇒ Publisher
Returns a new instance of Publisher.
5 6 7 |
# File 'lib/pro_monitor/publisher.rb', line 5 def initialize(changes) @changes = changes end |
Instance Attribute Details
#changes ⇒ Object (readonly)
Returns the value of attribute changes.
3 4 5 |
# File 'lib/pro_monitor/publisher.rb', line 3 def changes @changes end |
Instance Method Details
#publish ⇒ Object
9 10 11 |
# File 'lib/pro_monitor/publisher.rb', line 9 def publish ProMonitor.logger.info "Publishing #{changes}" end |