Class: Pakyow::Assets::External::Downloader Private
- Inherits:
-
Object
- Object
- Pakyow::Assets::External::Downloader
- 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
- #body ⇒ Object readonly private
- #path ⇒ Object readonly private
- #status ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(uri) ⇒ Downloader
constructor
private
A new instance of Downloader.
- #perform ⇒ Object private
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
#body ⇒ Object (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 |
#path ⇒ Object (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 |
#status ⇒ Object (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
#perform ⇒ Object
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 |