Module: ESPN::Client::Medals

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

Overview

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

Examples

class Client
  include ESPN::Client::Medals
end

Instance Method Summary collapse

Instance Method Details

#medals(opts = {}) ⇒ Object

Public: Get medal counts and competition from the olympic games.

opts - Hash options used to refine the selection (default: {}).

Returns an Array of Hashie::Mash.



18
19
20
# File 'lib/espn/client/medals.rb', line 18

def medals(opts={})
  get('sports/olympics/medals', opts)
end