Class: TwitterHashtag::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_hashtag/request.rb

Constant Summary collapse

SEARCH_URI =
'search.twitter.com'

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cli) ⇒ Request

Returns a new instance of Request.



10
11
12
# File 'lib/twitter_hashtag/request.rb', line 10

def initialize(cli)
  @cli = cli
end

Instance Attribute Details

#cliObject (readonly)

Returns the value of attribute cli.



14
15
16
# File 'lib/twitter_hashtag/request.rb', line 14

def cli
  @cli
end

Instance Method Details

#issueObject



16
17
18
# File 'lib/twitter_hashtag/request.rb', line 16

def issue
  JSON.parse Net::HTTP.get(SEARCH_URI, path)
end