Class: MojFileUploaderApiClient::Status
Constant Summary
Constants inherited
from HttpClient
HttpClient::DEFAULT_OPTIONS
Instance Attribute Summary
Attributes inherited from HttpClient
#response
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from HttpClient
#call, configure, #options, #payload, #payload?
Class Method Details
.options ⇒ Object
3
4
5
6
7
|
# File 'lib/mojfile_uploader_api_client/status.rb', line 3
def self.options
{ timeout: 5 }
end
|
Instance Method Details
#available? ⇒ Boolean
17
18
19
|
# File 'lib/mojfile_uploader_api_client/status.rb', line 17
def available?
response.success? && status.eql?('ok')
end
|
#endpoint ⇒ Object
13
14
15
|
# File 'lib/mojfile_uploader_api_client/status.rb', line 13
def endpoint
'status'
end
|
#verb ⇒ Object
9
10
11
|
# File 'lib/mojfile_uploader_api_client/status.rb', line 9
def verb
:get
end
|