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.
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_key ⇒ Object
Twitter consumer key credentials
10 11 12 |
# File 'lib/backup/notifier/twitter.rb', line 10 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Twitter consumer key credentials
10 11 12 |
# File 'lib/backup/notifier/twitter.rb', line 10 def consumer_secret @consumer_secret end |
#oauth_token ⇒ Object
OAuth credentials
14 15 16 |
# File 'lib/backup/notifier/twitter.rb', line 14 def oauth_token @oauth_token end |
#oauth_token_secret ⇒ Object
OAuth credentials
14 15 16 |
# File 'lib/backup/notifier/twitter.rb', line 14 def oauth_token_secret @oauth_token_secret end |