module ESPN::Client::Now

Public: The mapping to the ESPN NOW API of the ESPN developer API.

Examples

class Client
  include ESPN::Client::Now
end

Public Instance Methods

now(opts={}) click to toggle source

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

# File lib/espn/client/now.rb, line 19
def now(opts={})
  pattern = 'now/:method'
  get(pattern, opts).feed
end