Class: ApiFootball::Country
- Inherits:
-
Object
- Object
- ApiFootball::Country
- Defined in:
- lib/api_football/country.rb
Instance Attribute Summary collapse
-
#http ⇒ Object
readonly
Returns the value of attribute http.
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(http:) ⇒ Country
constructor
A new instance of Country.
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
#http ⇒ Object (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
#all ⇒ Object
10 11 12 |
# File 'lib/api_football/country.rb', line 10 def all http.request(action: :get_countries) end |