Class: Backup::Notifier::Twitter
- Defined in:
- lib/backup/notifier/twitter.rb
Instance Attribute Summary collapse
-
#consumer_key ⇒ Object
Twitter consumer key credentials.
-
#consumer_secret ⇒ Object
Twitter consumer key credentials.
-
#oauth_token ⇒ Object
OAuth credentials.
-
#oauth_token_secret ⇒ Object
OAuth credentials.
Attributes inherited from Base
#max_retries, #message, #model, #on_failure, #on_success, #on_warning, #retry_waitsec
Instance Method Summary collapse
-
#initialize(model, &block) ⇒ Twitter
constructor
A new instance of Twitter.
Methods inherited from Base
Methods included from Config::Helpers
Constructor Details
#initialize(model, &block) ⇒ Twitter
Returns a new instance of Twitter.
14 15 16 17 |
# File 'lib/backup/notifier/twitter.rb', line 14 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_key ⇒ Object
Twitter consumer key credentials
8 9 10 |
# File 'lib/backup/notifier/twitter.rb', line 8 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Twitter consumer key credentials
8 9 10 |
# File 'lib/backup/notifier/twitter.rb', line 8 def consumer_secret @consumer_secret end |
#oauth_token ⇒ Object
OAuth credentials
12 13 14 |
# File 'lib/backup/notifier/twitter.rb', line 12 def oauth_token @oauth_token end |
#oauth_token_secret ⇒ Object
OAuth credentials
12 13 14 |
# File 'lib/backup/notifier/twitter.rb', line 12 def oauth_token_secret @oauth_token_secret end |