Class: Backup::Notifier::Twitter

Inherits:
Base
  • Object
show all
Defined in:
lib/backup/notifier/twitter.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#max_retries, #message, #model, #on_failure, #on_success, #on_warning, #retry_waitsec

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Config::Helpers

included

Methods included from Utilities::Helpers

#utility_remote

Constructor Details

#initialize(model, &block) ⇒ Twitter

Returns a new instance of Twitter.



16
17
18
19
# File 'lib/backup/notifier/twitter.rb', line 16

def initialize(model, &block)
  super
  instance_eval(&block) if block_given?
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Backup::Config::Helpers

Instance Attribute Details

#consumer_keyObject

Twitter consumer key credentials



10
11
12
# File 'lib/backup/notifier/twitter.rb', line 10

def consumer_key
  @consumer_key
end

#consumer_secretObject

Twitter consumer key credentials



10
11
12
# File 'lib/backup/notifier/twitter.rb', line 10

def consumer_secret
  @consumer_secret
end

#oauth_tokenObject

OAuth credentials



14
15
16
# File 'lib/backup/notifier/twitter.rb', line 14

def oauth_token
  @oauth_token
end

#oauth_token_secretObject

OAuth credentials



14
15
16
# File 'lib/backup/notifier/twitter.rb', line 14

def oauth_token_secret
  @oauth_token_secret
end