Class: ProMonitor::Publisher

Inherits:
Object
  • Object
show all
Defined in:
lib/pro_monitor/publisher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#changesObject (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

#publishObject



9
10
11
# File 'lib/pro_monitor/publisher.rb', line 9

def publish
  ProMonitor.logger.info "Publishing #{changes}"
end