Class: Pulley::Publisher
- Inherits:
-
Object
- Object
- Pulley::Publisher
- Defined in:
- lib/pulley.rb
Instance Method Summary collapse
-
#initialize(client) ⇒ Publisher
constructor
A new instance of Publisher.
- #publish_updates(reqs) ⇒ Object
Constructor Details
#initialize(client) ⇒ Publisher
Returns a new instance of Publisher.
79 80 81 |
# File 'lib/pulley.rb', line 79 def initialize client @client = client end |
Instance Method Details
#publish_updates(reqs) ⇒ Object
83 84 85 86 87 88 |
# File 'lib/pulley.rb', line 83 def publish_updates reqs reqs.each do |req| next unless req['modified'] @client.update_pull_request(req['number'], req['title'], req['body']) end end |