Class: Torba::RemoteSources::Zip

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/torba/remote_sources/zip.rb

Overview

Represents remote zip archive.

Since:

  • 0.1.0

Direct Known Subclasses

GithubRelease

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#[]

Constructor Details

#initialize(url) ⇒ Zip

Returns a new instance of Zip

Since:

  • 0.1.0


18
19
20
# File 'lib/torba/remote_sources/zip.rb', line 18

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject (readonly)

Since:

  • 0.1.0


16
17
18
# File 'lib/torba/remote_sources/zip.rb', line 16

def url
  @url
end

Instance Method Details

#digestObject

Since:

  • 0.1.0


22
23
24
# File 'lib/torba/remote_sources/zip.rb', line 22

def digest
  Torba.digest(url)
end