Class: Integrity::Notifier::Yammer
- Inherits:
-
Notifier::Base
- Object
- Notifier::Base
- Integrity::Notifier::Yammer
- Defined in:
- lib/notifier/yammer.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
- #deliver! ⇒ Object
-
#initialize(build, config = {}) ⇒ Yammer
constructor
A new instance of Yammer.
- #message ⇒ Object
Constructor Details
#initialize(build, config = {}) ⇒ Yammer
Returns a new instance of Yammer.
11 12 13 14 |
# File 'lib/notifier/yammer.rb', line 11 def initialize(build, config = {}) @yammer_client = ::Yammer::Client.new(:config => config['oauth_yml']) super end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
9 10 11 |
# File 'lib/notifier/yammer.rb', line 9 def config @config end |
Class Method Details
.to_haml ⇒ Object
16 17 18 |
# File 'lib/notifier/yammer.rb', line 16 def self.to_haml File.read File.dirname(__FILE__) / "config.haml" end |
Instance Method Details
#deliver! ⇒ Object
20 21 22 |
# File 'lib/notifier/yammer.rb', line 20 def deliver! @yammer_client.(:post, :body => ) end |
#message ⇒ Object
24 25 26 |
# File 'lib/notifier/yammer.rb', line 24 def @message ||= "#{build.project.name} #{}" end |