Class: BoringBuilder::Result
- Inherits:
-
Data
- Object
- Data
- BoringBuilder::Result
- Defined in:
- lib/boringbuilder/result.rb
Instance Attribute Summary collapse
-
#artifact_id ⇒ Object
readonly
Returns the value of attribute artifact_id.
-
#artifact_name ⇒ Object
readonly
Returns the value of attribute artifact_name.
-
#format ⇒ Object
readonly
Returns the value of attribute format.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#platform ⇒ Object
readonly
Returns the value of attribute platform.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#runtime ⇒ Object
readonly
Returns the value of attribute runtime.
Instance Method Summary collapse
- #artifact_published? ⇒ Boolean
- #exported? ⇒ Boolean
-
#initialize(format:, path:, reference:, runtime:, platform:, artifact_id: nil, artifact_name: nil) ⇒ Result
constructor
A new instance of Result.
- #published? ⇒ Boolean
- #to_h ⇒ Object
Constructor Details
#initialize(format:, path:, reference:, runtime:, platform:, artifact_id: nil, artifact_name: nil) ⇒ Result
Returns a new instance of Result.
5 6 7 |
# File 'lib/boringbuilder/result.rb', line 5 def initialize(format:, path:, reference:, runtime:, platform:, artifact_id: nil, artifact_name: nil) super end |
Instance Attribute Details
#artifact_id ⇒ Object (readonly)
Returns the value of attribute artifact_id
4 5 6 |
# File 'lib/boringbuilder/result.rb', line 4 def artifact_id @artifact_id end |
#artifact_name ⇒ Object (readonly)
Returns the value of attribute artifact_name
4 5 6 |
# File 'lib/boringbuilder/result.rb', line 4 def artifact_name @artifact_name end |
#format ⇒ Object (readonly)
Returns the value of attribute format
4 5 6 |
# File 'lib/boringbuilder/result.rb', line 4 def format @format end |
#path ⇒ Object (readonly)
Returns the value of attribute path
4 5 6 |
# File 'lib/boringbuilder/result.rb', line 4 def path @path end |
#platform ⇒ Object (readonly)
Returns the value of attribute platform
4 5 6 |
# File 'lib/boringbuilder/result.rb', line 4 def platform @platform end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference
4 5 6 |
# File 'lib/boringbuilder/result.rb', line 4 def reference @reference end |
#runtime ⇒ Object (readonly)
Returns the value of attribute runtime
4 5 6 |
# File 'lib/boringbuilder/result.rb', line 4 def runtime @runtime end |
Instance Method Details
#artifact_published? ⇒ Boolean
17 18 19 |
# File 'lib/boringbuilder/result.rb', line 17 def artifact_published? !artifact_id.nil? end |
#exported? ⇒ Boolean
9 10 11 |
# File 'lib/boringbuilder/result.rb', line 9 def exported? !path.nil? end |
#published? ⇒ Boolean
13 14 15 |
# File 'lib/boringbuilder/result.rb', line 13 def published? !reference.nil? end |
#to_h ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/boringbuilder/result.rb', line 21 def to_h { format: format, path: path, reference: reference, runtime: runtime, platform: platform, artifact_id: artifact_id, artifact_name: artifact_name } end |