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
#on_failure, #on_success, #on_warning
Instance Method Summary collapse
-
#initialize(model, &block) ⇒ Twitter
constructor
A new instance of Twitter.
Methods inherited from Base
Methods included from Configuration::Helpers
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_key ⇒ Object
Twitter consumer key credentials
13 14 15 |
# File 'lib/backup/notifier/twitter.rb', line 13 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Twitter consumer key credentials
13 14 15 |
# File 'lib/backup/notifier/twitter.rb', line 13 def consumer_secret @consumer_secret end |
#oauth_token ⇒ Object
OAuth credentials
17 18 19 |
# File 'lib/backup/notifier/twitter.rb', line 17 def oauth_token @oauth_token end |
#oauth_token_secret ⇒ Object
OAuth credentials
17 18 19 |
# File 'lib/backup/notifier/twitter.rb', line 17 def oauth_token_secret @oauth_token_secret end |