Class: Economic::DepartmentalDistributionRepo

Inherits:
BaseRepo
  • Object
show all
Defined in:
lib/economic/departmental_distribution_repo.rb

Constant Summary

Constants inherited from BaseRepo

BaseRepo::URL

Class Method Summary collapse

Methods inherited from BaseRepo

destroy, filter, id_to_url_formatted_id, save, send, send_request, updated_after

Class Method Details

.all(distribution: nil) ⇒ Object



4
5
6
7
8
# File 'lib/economic/departmental_distribution_repo.rb', line 4

def all(distribution: nil)
  return super(url: endpoint_url(distribution)) unless distribution.nil?

  super(url: endpoint_url(distribution))
end

.find(id, distribution:) ⇒ Object



10
11
12
# File 'lib/economic/departmental_distribution_repo.rb', line 10

def find(id, distribution:)
  super(id, url: endpoint_url(distribution))
end