Class: CircleCI::CoverageReporter::Artifact
- Inherits:
-
Struct
- Object
- Struct
- CircleCI::CoverageReporter::Artifact
- Defined in:
- lib/circleci/coverage_reporter/artifact.rb
Overview
Encapsulate a CircleCI artifact
Instance Attribute Summary collapse
-
#node_index ⇒ Object
Returns the value of attribute node_index.
-
#path ⇒ Object
Returns the value of attribute path.
-
#pretty_path ⇒ Object
Returns the value of attribute pretty_path.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#node_index ⇒ Object
Returns the value of attribute node_index
4 5 6 |
# File 'lib/circleci/coverage_reporter/artifact.rb', line 4 def node_index @node_index end |
#path ⇒ Object
Returns the value of attribute path
4 5 6 |
# File 'lib/circleci/coverage_reporter/artifact.rb', line 4 def path @path end |
#pretty_path ⇒ Object
Returns the value of attribute pretty_path
4 5 6 |
# File 'lib/circleci/coverage_reporter/artifact.rb', line 4 def pretty_path @pretty_path end |
#url ⇒ Object
Returns the value of attribute url
4 5 6 |
# File 'lib/circleci/coverage_reporter/artifact.rb', line 4 def url @url end |
Instance Method Details
#body ⇒ String
11 12 13 |
# File 'lib/circleci/coverage_reporter/artifact.rb', line 11 def body @body ||= CoverageReporter.client.get(url).body end |
#end_with?(value) ⇒ Boolean
6 7 8 |
# File 'lib/circleci/coverage_reporter/artifact.rb', line 6 def end_with?(value) pretty_path.end_with?(value) end |