Class: Ronan::Downloads
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
get, #initialize, #method_missing
Constructor Details
This class inherits a constructor from Ronan::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Ronan::Base
Class Method Details
.where(package: nil) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/ronan/downloads.rb', line 3 def self.where(package: nil) name = package.recipe.name version = package.recipe.version user = package.recipe.user channel = package.recipe.channel revision = package.revision get("/v1/conans/#{name}/#{version}/#{user}/#{channel}/packages/#{revision}/download_urls", symbolize: false) do |attributes| {package: package, artifacts: attributes} end end |
Instance Method Details
#url(name) ⇒ Object
14 15 16 |
# File 'lib/ronan/downloads.rb', line 14 def url(name) artifacts[name] end |