Class: Backup::Notifier::Twitter

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

Instance Attribute Summary collapse

Attributes inherited from Base

#on_failure, #on_success, #on_warning

Instance Method Summary collapse

Methods inherited from Base

#perform!

Methods included from Configuration::Helpers

included

Constructor Details

#initialize(model, &block) ⇒ Twitter

Returns a new instance of Twitter.



19
20
21
22
23
# File 'lib/backup/notifier/twitter.rb', line 19

def initialize(model, &block)
  super(model)

  instance_eval(&block) if block_given?
end

Dynamic Method Handling

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

Instance Attribute Details

#consumer_keyObject

Twitter consumer key credentials



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

def consumer_key
  @consumer_key
end

#consumer_secretObject

Twitter consumer key credentials



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

def consumer_secret
  @consumer_secret
end

#oauth_tokenObject

OAuth credentials



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

def oauth_token
  @oauth_token
end

#oauth_token_secretObject

OAuth credentials



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

def oauth_token_secret
  @oauth_token_secret
end