Module: ESPN::Client::Now

Included in:
ESPN::Client
Defined in:
lib/espn/client/now.rb

Overview

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

Examples

class Client
  include ESPN::Client::Now
end

Instance Method Summary collapse

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



19
20
21
22
# File 'lib/espn/client/now.rb', line 19

def now(opts={})
  pattern = 'now/:method'
  get(pattern, opts).feed
end