Class: Pakyow::Assets::External::Downloader Private

Inherits:
Object
  • Object
show all
Defined in:
lib/pakyow/assets/external.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: Failed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Downloader

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Downloader.



101
102
103
# File 'lib/pakyow/assets/external.rb', line 101

def initialize(uri)
  @uri = URI.parse(uri)
end

Instance Attribute Details

#bodyObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



99
100
101
# File 'lib/pakyow/assets/external.rb', line 99

def body
  @body
end

#pathObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



99
100
101
# File 'lib/pakyow/assets/external.rb', line 99

def path
  @path
end

#statusObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



99
100
101
# File 'lib/pakyow/assets/external.rb', line 99

def status
  @status
end

Instance Method Details

#performObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



105
106
107
# File 'lib/pakyow/assets/external.rb', line 105

def perform
  get(@uri.path); self
end