Class: HackernewsApiClient::Requests::TopStories

Inherits:
Object
  • Object
show all
Defined in:
lib/hackernews_api_client/requests/top_stories.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = options if options.empty? ? {} : options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/hackernews_api_client/requests/top_stories.rb', line 4

def options
  @options
end

Instance Method Details

#pathObject



10
11
12
# File 'lib/hackernews_api_client/requests/top_stories.rb', line 10

def path
  "/v0/topstories.json"
end