Class: Integrity::Notifier::Tumblr
- Inherits:
-
Notifier::Base
- Object
- Notifier::Base
- Integrity::Notifier::Tumblr
- Defined in:
- lib/integrity/notifier/tumblr.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
7 8 9 |
# File 'lib/integrity/notifier/tumblr.rb', line 7 def config @config end |
Class Method Details
.to_haml ⇒ Object
9 10 11 |
# File 'lib/integrity/notifier/tumblr.rb', line 9 def self.to_haml File.read(File.dirname(__FILE__) + "/config.haml") end |
Instance Method Details
#deliver! ⇒ Object
13 14 15 |
# File 'lib/integrity/notifier/tumblr.rb', line 13 def deliver! TumblrClient.post(config['email'], config['password'], , ) end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/integrity/notifier/tumblr.rb', line 17 def to_s 'Tumblr' end |