Class: CBSSports::Client
- Inherits:
-
Object
- Object
- CBSSports::Client
- Includes:
- Players
- Defined in:
- lib/cbs_sports/client.rb,
lib/cbs_sports/client/players.rb
Defined Under Namespace
Modules: Players
Instance Attribute Summary collapse
-
#response_format ⇒ Object
readonly
Returns the value of attribute response_format.
-
#sport ⇒ Object
readonly
Returns the value of attribute sport.
Instance Method Summary collapse
-
#initialize(response_format: :json, sport:) ⇒ Client
constructor
A new instance of Client.
Methods included from 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_format ⇒ Object (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 |
#sport ⇒ Object (readonly)
Returns the value of attribute sport.
9 10 11 |
# File 'lib/cbs_sports/client.rb', line 9 def sport @sport end |