Class: TweetThat
- Inherits:
-
EDI::Service
- Object
- EDI::Service
- TweetThat
- Defined in:
- lib/edi/services/tweet_that.rb
Instance Attribute Summary collapse
-
#last_message ⇒ Object
Returns the value of attribute last_message.
-
#tweet ⇒ Object
Returns the value of attribute tweet.
-
#twitter_client ⇒ Object
Returns the value of attribute twitter_client.
Attributes inherited from EDI::Service
Instance Method Summary collapse
Methods inherited from EDI::Service
Methods included from EDI::Environment
included, #validate_environment
Methods included from EDI::DSL
Constructor Details
This class inherits a constructor from EDI::Service
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class EDI::Service
Instance Attribute Details
#last_message ⇒ Object
Returns the value of attribute last_message.
15 16 17 |
# File 'lib/edi/services/tweet_that.rb', line 15 def @last_message end |
#tweet ⇒ Object
Returns the value of attribute tweet.
15 16 17 |
# File 'lib/edi/services/tweet_that.rb', line 15 def tweet @tweet end |
#twitter_client ⇒ Object
Returns the value of attribute twitter_client.
15 16 17 |
# File 'lib/edi/services/tweet_that.rb', line 15 def twitter_client @twitter_client end |
Instance Method Details
#run ⇒ Object
17 18 19 20 |
# File 'lib/edi/services/tweet_that.rb', line 17 def run self.tweet = post_tweet "#{link}" end |