Class: TranslationCms::Api::Profile::Export
- Inherits:
-
Base
- Object
- JsonApiClient::Resource
- Base
- Base
- TranslationCms::Api::Profile::Export
show all
- Defined in:
- lib/translation_cms/api/profile/export.rb
Constant Summary
collapse
- AVAILABLE_STATE_CODES =
%w[].freeze
- COMPLETED_STATE_NAMES =
%w[completed].freeze
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
all!, custom_scope!, default_attributes, destroy, dummy_resource!, #method_missing_with_translations_will_change, parsed!, path_with_custom_scope, resource_type!, update
Class Method Details
.path(*_args) ⇒ Object
26
27
28
|
# File 'lib/translation_cms/api/profile/export.rb', line 26
def path(*_args)
'customers/exports/profile'
end
|
.prepare(_access_token = nil) ⇒ Object
30
31
32
|
# File 'lib/translation_cms/api/profile/export.rb', line 30
def prepare(_access_token = nil)
create
end
|
.status(_access_token = nil) ⇒ Object
34
35
36
|
# File 'lib/translation_cms/api/profile/export.rb', line 34
def status(_access_token = nil)
first
end
|
Instance Method Details
#available? ⇒ Boolean
17
18
19
|
# File 'lib/translation_cms/api/profile/export.rb', line 17
def available?
respond_to?(:state) && (state.nil? || AVAILABLE_STATE_CODES.include?(state))
end
|
#completed? ⇒ Boolean
21
22
23
|
# File 'lib/translation_cms/api/profile/export.rb', line 21
def completed?
respond_to?(:state) && COMPLETED_STATE_NAMES.include?(state)
end
|