Class: Hashipack::Artifact
- Inherits:
-
Object
- Object
- Hashipack::Artifact
- Defined in:
- lib/hashipack/artifact.rb
Instance Attribute Summary collapse
-
#builder_id ⇒ Object
readonly
Returns the value of attribute builder_id.
-
#files_count ⇒ Object
readonly
Returns the value of attribute files_count.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#string ⇒ Object
readonly
Returns the value of attribute string.
Instance Method Summary collapse
Instance Attribute Details
#builder_id ⇒ Object (readonly)
Returns the value of attribute builder_id.
3 4 5 |
# File 'lib/hashipack/artifact.rb', line 3 def builder_id @builder_id end |
#files_count ⇒ Object (readonly)
Returns the value of attribute files_count.
3 4 5 |
# File 'lib/hashipack/artifact.rb', line 3 def files_count @files_count end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/hashipack/artifact.rb', line 3 def id @id end |
#string ⇒ Object (readonly)
Returns the value of attribute string.
3 4 5 |
# File 'lib/hashipack/artifact.rb', line 3 def string @string end |
Instance Method Details
#append_info(key, value) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/hashipack/artifact.rb', line 5 def append_info(key, value) case key.to_s when 'builder-id' @builder_id = value when 'id' @id = value when 'string' @string = value when 'files_count' @files_count = value end end |