Class: Jiminy::Reporting::CIProviders::Local::Artifact
- Inherits:
-
Object
- Object
- Jiminy::Reporting::CIProviders::Local::Artifact
- Defined in:
- lib/jiminy/reporting/ci_providers/local/artifact.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Artifact
constructor
A new instance of Artifact.
Constructor Details
#initialize(attributes) ⇒ Artifact
Returns a new instance of Artifact.
16 17 18 19 20 |
# File 'lib/jiminy/reporting/ci_providers/local/artifact.rb', line 16 def initialize(attributes) attributes.each do |key, value| public_send(:"#{key}=", value) end end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
8 9 10 |
# File 'lib/jiminy/reporting/ci_providers/local/artifact.rb', line 8 def url @url end |
Class Method Details
.all ⇒ Object
10 11 12 13 14 |
# File 'lib/jiminy/reporting/ci_providers/local/artifact.rb', line 10 def self.all Dir[Jiminy.configuration.temp_file_location].map do |filepath| new(url: filepath) end end |