Class: HackernewsApiClient::Requests::TopStories
- Inherits:
-
Object
- Object
- HackernewsApiClient::Requests::TopStories
- Defined in:
- lib/hackernews_api_client/requests/top_stories.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options: {}) ⇒ TopStories
constructor
A new instance of TopStories.
- #path ⇒ Object
Constructor Details
#initialize(options: {}) ⇒ TopStories
Returns a new instance of TopStories.
6 7 8 |
# File 'lib/hackernews_api_client/requests/top_stories.rb', line 6 def initialize(options: {}) @options = if .empty? ? {} : end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/hackernews_api_client/requests/top_stories.rb', line 4 def @options end |
Instance Method Details
#path ⇒ Object
10 11 12 |
# File 'lib/hackernews_api_client/requests/top_stories.rb', line 10 def path "/v0/topstories.json" end |