Class: CBSSports::Client

Inherits:
Object
  • Object
show all
Includes:
Players
Defined in:
lib/cbs_sports/client.rb,
lib/cbs_sports/client/players.rb

Defined Under Namespace

Modules: Players

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Players

#players

Constructor Details

#initialize(response_format: :json, sport:) ⇒ Client

Returns a new instance of Client.



11
12
13
14
# File 'lib/cbs_sports/client.rb', line 11

def initialize(response_format: :json, sport:)
  @response_format = response_format
  @sport = sport
end

Instance Attribute Details

#response_formatObject (readonly)

Returns the value of attribute response_format.



9
10
11
# File 'lib/cbs_sports/client.rb', line 9

def response_format
  @response_format
end

#sportObject (readonly)

Returns the value of attribute sport.



9
10
11
# File 'lib/cbs_sports/client.rb', line 9

def sport
  @sport
end