Class: TwitterHashtag::Request
- Inherits:
-
Object
- Object
- TwitterHashtag::Request
- Defined in:
- lib/twitter_hashtag/request.rb
Constant Summary collapse
- SEARCH_URI =
'search.twitter.com'
Instance Attribute Summary collapse
-
#cli ⇒ Object
readonly
Returns the value of attribute cli.
Instance Method Summary collapse
-
#initialize(cli) ⇒ Request
constructor
A new instance of Request.
- #issue ⇒ Object
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
#cli ⇒ Object (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
#issue ⇒ Object
16 17 18 |
# File 'lib/twitter_hashtag/request.rb', line 16 def issue JSON.parse Net::HTTP.get(SEARCH_URI, path) end |