Class: PolyglotFlutter::Resource::Base
- Inherits:
-
JsonApiClient::Resource
- Object
- JsonApiClient::Resource
- PolyglotFlutter::Resource::Base
show all
- Extended by:
- Helper::Depaginate
- Defined in:
- lib/flutter_polyglot_cli/api/base.rb
Constant Summary
Helper::Depaginate::PER_PAGE
Class Method Summary
collapse
depaginate_query
Class Method Details
.depaginate(opts = {}) ⇒ Object
13
14
15
|
# File 'lib/flutter_polyglot_cli/api/base.rb', line 13
def self.depaginate(opts = {})
depaginate_query(where(opts))
end
|
.token(token) ⇒ Object
8
9
10
11
|
# File 'lib/flutter_polyglot_cli/api/base.rb', line 8
def self.token(token)
self.connection_options = { headers: { 'X-Auth-Token' => token } }
self
end
|