Class: ApiFootballV3::Client
- Inherits:
-
Object
- Object
- ApiFootballV3::Client
- Defined in:
- lib/api_football_v3/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Client
constructor
A new instance of Client.
Methods included from Request
Methods included from Rest::Venues
Methods included from Rest::Trophies
Methods included from Rest::Transfers
Methods included from Rest::Timezones
Methods included from Rest::Teams
Methods included from Rest::Standings
Methods included from Rest::Sidelined
Methods included from Rest::Predictions
Methods included from Rest::Players
#players, #players_seasons, #top_scorers
Methods included from Rest::Odds
#bets, #bookmakers, #mapping, #odds
Methods included from Rest::Leagues
Methods included from Rest::Fixtures
#fixture_events, #fixture_lineups, #fixture_player_statistics, #fixture_statistics, #fixtures, #head_to_head, #live, #rounds
Methods included from Rest::Countries
Methods included from Rest::Coaches
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 |
# File 'lib/api_football_v3/client.rb', line 10 def initialize( = {}) .each do |key, value| instance_variable_set("@#{key}", value) end yield(self) if block_given? end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
8 9 10 |
# File 'lib/api_football_v3/client.rb', line 8 def api_key @api_key end |
#base_url ⇒ Object
Returns the value of attribute base_url.
8 9 10 |
# File 'lib/api_football_v3/client.rb', line 8 def base_url @base_url end |