Class: Bunny::Country

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

Class Method Summary collapse

Methods inherited from Object

#camel_to_snake, #initialize, #to_ostruct

Constructor Details

This class inherits a constructor from Bunny::Object

Class Method Details

.listObject



4
5
6
7
# File 'lib/bunny/models/country.rb', line 4

def list
  response = Client.get_request("country")
  Collection.from_response(response, type: Country)
end