Class: DPL::Provider::Bintray::Artifact
- Inherits:
-
Object
- Object
- DPL::Provider::Bintray::Artifact
- Defined in:
- lib/dpl/provider/bintray.rb
Overview
This class represents an artifact (file) to be uploaded to Bintray.
Instance Attribute Summary collapse
-
#local_path ⇒ Object
readonly
Returns the value of attribute local_path.
-
#matrix_params ⇒ Object
readonly
Returns the value of attribute matrix_params.
-
#upload_path ⇒ Object
readonly
Returns the value of attribute upload_path.
Instance Method Summary collapse
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(local_path, upload_path, matrix_params) ⇒ Artifact
constructor
A new instance of Artifact.
Constructor Details
#initialize(local_path, upload_path, matrix_params) ⇒ Artifact
Returns a new instance of Artifact.
465 466 467 468 469 |
# File 'lib/dpl/provider/bintray.rb', line 465 def initialize(local_path, upload_path, matrix_params) @local_path = local_path @upload_path = upload_path @matrix_params = matrix_params end |
Instance Attribute Details
#local_path ⇒ Object (readonly)
Returns the value of attribute local_path.
479 480 481 |
# File 'lib/dpl/provider/bintray.rb', line 479 def local_path @local_path end |
#matrix_params ⇒ Object (readonly)
Returns the value of attribute matrix_params.
481 482 483 |
# File 'lib/dpl/provider/bintray.rb', line 481 def matrix_params @matrix_params end |
#upload_path ⇒ Object (readonly)
Returns the value of attribute upload_path.
480 481 482 |
# File 'lib/dpl/provider/bintray.rb', line 480 def upload_path @upload_path end |
Instance Method Details
#eql?(other) ⇒ Boolean
475 476 477 |
# File 'lib/dpl/provider/bintray.rb', line 475 def eql?(other) @localPath == other.local_path end |
#hash ⇒ Object
471 472 473 |
# File 'lib/dpl/provider/bintray.rb', line 471 def hash return @localPath.hash end |