Class: GoApiClient::Domain::Artifact

Inherits:
AttributeHelper show all
Defined in:
lib/go_api_client/domain/artifact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Artifact

Returns a new instance of Artifact.



7
8
9
# File 'lib/go_api_client/domain/artifact.rb', line 7

def initialize(attributes)
  super(attributes)
end

Instance Attribute Details

#artifact_typeObject

Returns the value of attribute artifact_type.



5
6
7
# File 'lib/go_api_client/domain/artifact.rb', line 5

def artifact_type
  @artifact_type
end

#base_uriObject

Returns the value of attribute base_uri.



5
6
7
# File 'lib/go_api_client/domain/artifact.rb', line 5

def base_uri
  @base_uri
end

#destObject

Returns the value of attribute dest.



5
6
7
# File 'lib/go_api_client/domain/artifact.rb', line 5

def dest
  @dest
end

#srcObject

Returns the value of attribute src.



5
6
7
# File 'lib/go_api_client/domain/artifact.rb', line 5

def src
  @src
end

Instance Method Details

#as_zip_file_urlObject



11
12
13
# File 'lib/go_api_client/domain/artifact.rb', line 11

def as_zip_file_url
  "#{File.join(base_uri, src)}.zip"
end