Class: Jiminy::Reporting::CIProviders::Local::Artifact

Inherits:
Object
  • Object
show all
Defined in:
lib/jiminy/reporting/ci_providers/local/artifact.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#urlObject

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

.allObject



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