Class: ApiFootball::Country

Inherits:
Object
  • Object
show all
Defined in:
lib/api_football/country.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(http:) ⇒ Country

Returns a new instance of Country.



6
7
8
# File 'lib/api_football/country.rb', line 6

def initialize(http:)
  @http = http
end

Instance Attribute Details

#httpObject (readonly)

Returns the value of attribute http.



5
6
7
# File 'lib/api_football/country.rb', line 5

def http
  @http
end

Instance Method Details

#allObject



10
11
12
# File 'lib/api_football/country.rb', line 10

def all
  http.request(action: :get_countries)
end