Class: Integrity::Notifier::Tumblr

Inherits:
Notifier::Base
  • Object
show all
Defined in:
lib/integrity/notifier/tumblr.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#configObject (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_hamlObject



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'], short_message, full_message)
end

#to_sObject



17
18
19
# File 'lib/integrity/notifier/tumblr.rb', line 17

def to_s
  'Tumblr'
end