Class: CloudAlign::Artifact
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- CloudAlign::Artifact
- Defined in:
- lib/cloudalign/artifact.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from BaseEntity
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseEntity
Constructor Details
This class inherits a constructor from CloudAlign::BaseEntity
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/cloudalign/artifact.rb', line 3 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/cloudalign/artifact.rb', line 3 def name @name end |
Class Method Details
.find_by_project(project_id) ⇒ Object
7 8 9 10 11 |
# File 'lib/cloudalign/artifact.rb', line 7 def find_by_project(project_id) Client.get_json("/projects/#{project_id}/artifacts").map do |row| Artifact.new(row) end end |
Instance Method Details
#analyze(analyzer, options = {}) ⇒ Object
15 16 17 18 |
# File 'lib/cloudalign/artifact.rb', line 15 def analyze(analyzer, = {}) [:analyzer] = analyzer Client.post("/artifacts/#{@id}/analyze", ) end |
#destroy ⇒ Object
20 21 22 |
# File 'lib/cloudalign/artifact.rb', line 20 def destroy Client.delete("/artifacts/#{@id}") end |