Module: CleverSDK::Api::Districts
- Included in:
- CleverSDK::Api
- Defined in:
- lib/clever_sdk/api/districts.rb
Instance Method Summary collapse
- #district(access_token:, id:) ⇒ Object
-
#districts(access_token:, count: nil) ⇒ Object
count - acceptable values are nil, :true, :false, :undefined.
Instance Method Details
#district(access_token:, id:) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/clever_sdk/api/districts.rb', line 15 def district(access_token:, id:) get( "https://api.clever.com/v3.0/districts/#{id}", {}, bearer_headers(access_token) ) end |
#districts(access_token:, count: nil) ⇒ Object
count - acceptable values are nil, :true, :false, :undefined
7 8 9 10 11 12 13 |
# File 'lib/clever_sdk/api/districts.rb', line 7 def districts(access_token:, count: nil) get( "https://api.clever.com/v3.0/districts", params(count: count), bearer_headers(access_token) ) end |