mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Added download_url support to Package
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
class W3DHub
|
class W3DHub
|
||||||
class Api
|
class Api
|
||||||
class Package
|
class Package
|
||||||
attr_reader :category, :subcategory, :name, :version, :size, :checksum, :checksum_chunk_size, :checksum_chunks, :error,
|
attr_reader :category, :subcategory, :name, :version, :size, :checksum, :checksum_chunk_size, :checksum_chunks, :download_url, :error,
|
||||||
:custom_partially_valid_at_bytes, :custom_is_patch
|
:custom_partially_valid_at_bytes, :custom_is_patch
|
||||||
|
|
||||||
def initialize(hash)
|
def initialize(hash)
|
||||||
@@ -18,6 +18,8 @@ class W3DHub
|
|||||||
@checksum_chunks = @data[:"checksum-chunks"]
|
@checksum_chunks = @data[:"checksum-chunks"]
|
||||||
@error = @data[:error] || nil
|
@error = @data[:error] || nil
|
||||||
|
|
||||||
|
@download_url = @data[:download_url] || nil
|
||||||
|
|
||||||
@custom_partially_valid_at_bytes = 0
|
@custom_partially_valid_at_bytes = 0
|
||||||
@custom_is_patch = false
|
@custom_is_patch = false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user