Class: TweetThat

Inherits:
EDI::Service show all
Defined in:
lib/edi/services/tweet_that.rb

Instance Attribute Summary collapse

Attributes inherited from EDI::Service

#message, #response

Instance Method Summary collapse

Methods inherited from EDI::Service

#initialize, #method_missing

Methods included from EDI::Environment

included, #validate_environment

Methods included from EDI::DSL

included

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_messageObject

Returns the value of attribute last_message.



15
16
17
# File 'lib/edi/services/tweet_that.rb', line 15

def last_message
  @last_message
end

#tweetObject

Returns the value of attribute tweet.



15
16
17
# File 'lib/edi/services/tweet_that.rb', line 15

def tweet
  @tweet
end

#twitter_clientObject

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

#runObject



17
18
19
20
# File 'lib/edi/services/tweet_that.rb', line 17

def run
  self.tweet = post_tweet
  "#{link}"
end