Class: Hashipack::Artifact

Inherits:
Object
  • Object
show all
Defined in:
lib/hashipack/artifact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#builder_idObject (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_countObject (readonly)

Returns the value of attribute files_count.



3
4
5
# File 'lib/hashipack/artifact.rb', line 3

def files_count
  @files_count
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/hashipack/artifact.rb', line 3

def id
  @id
end

#stringObject (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