Class: Releases::Source
- Inherits:
-
Object
- Object
- Releases::Source
- Includes:
- ActiveModel::Model
- Defined in:
- app/models/releases/source.rb
Instance Attribute Summary collapse
-
#format ⇒ Object
Returns the value of attribute format.
-
#project ⇒ Object
Returns the value of attribute project.
-
#tag_name ⇒ Object
Returns the value of attribute tag_name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#format ⇒ Object
Returns the value of attribute format.
7 8 9 |
# File 'app/models/releases/source.rb', line 7 def format @format end |
#project ⇒ Object
Returns the value of attribute project.
7 8 9 |
# File 'app/models/releases/source.rb', line 7 def project @project end |
#tag_name ⇒ Object
Returns the value of attribute tag_name.
7 8 9 |
# File 'app/models/releases/source.rb', line 7 def tag_name @tag_name end |
Class Method Details
.all(project, tag_name) ⇒ Object
10 11 12 13 14 |
# File 'app/models/releases/source.rb', line 10 def all(project, tag_name) Gitlab::Workhorse::ARCHIVE_FORMATS.map do |format| Releases::Source.new(project: project, tag_name: tag_name, format: format) end end |
Instance Method Details
#hook_attrs ⇒ Object
23 24 25 26 27 28 |
# File 'app/models/releases/source.rb', line 23 def hook_attrs { format: format, url: url } end |