Module: NetworkExecutive::Components::TweetPlayer::ClassMethods

Defined in:
lib/network_executive/components/tweet_player.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



27
28
29
# File 'lib/network_executive/components/tweet_player.rb', line 27

def client
  @client
end

#queryObject

Returns the value of attribute query.



27
28
29
# File 'lib/network_executive/components/tweet_player.rb', line 27

def query
  @query
end

Instance Method Details

#configure {|client| ... } ⇒ Object

Yields:



33
34
35
# File 'lib/network_executive/components/tweet_player.rb', line 33

def configure
  yield client
end

#search(*args) ⇒ Object



37
38
39
# File 'lib/network_executive/components/tweet_player.rb', line 37

def search( *args )
  @query = args
end

#tweetsObject



41
42
43
# File 'lib/network_executive/components/tweet_player.rb', line 41

def tweets
  client.search( *query )
end