Module: ESPN::Client::Now
- Included in:
- ESPN::Client
- Defined in:
- lib/espn/client/now.rb
Instance Method Summary collapse
-
#now(opts = {}) ⇒ Object
Public: Get stream of the latest content published on ESPN.com.
Instance Method Details
#now(opts = {}) ⇒ Object
Public: Get stream of the latest content published on ESPN.com.
opts - Hash options used to refine the selection (default: {}).
- :method - The type of content to retrieve (default: nil).
Returns an Array of Hashie::Mash
11 12 13 14 15 16 17 18 19 |
# File 'lib/espn/client/now.rb', line 11 def now(opts={}) url = 'now' unless opts[:method].to_s.empty? url += "/#{opts[:method]}" end get(url, opts) end |