Class: Etna::Clients::Metis::UploadResponse
- Inherits:
-
Response
- Object
- Response
- Etna::Clients::Metis::UploadResponse
show all
- Defined in:
- lib/etna/clients/metis/models.rb
Instance Attribute Summary
Attributes inherited from Response
#raw
Instance Method Summary
collapse
Methods inherited from Response
#initialize, params
Instance Method Details
#current_byte_position ⇒ Object
438
439
440
|
# File 'lib/etna/clients/metis/models.rb', line 438
def current_byte_position
raw['current_byte_position'].to_i
end
|
#next_blob_size ⇒ Object
446
447
448
|
# File 'lib/etna/clients/metis/models.rb', line 446
def next_blob_size
raw['next_blob_size'].to_i
end
|
#upload_path ⇒ Object
450
451
452
|
# File 'lib/etna/clients/metis/models.rb', line 450
def upload_path
url.sub(%r!^https://[^/]*?/!, '/')
end
|
#url ⇒ Object
442
443
444
|
# File 'lib/etna/clients/metis/models.rb', line 442
def url
raw['url'] || ''
end
|