Exception: DesignManagement::Version::CouldNotCreateVersion
- Inherits:
-
StandardError
- Object
- StandardError
- DesignManagement::Version::CouldNotCreateVersion
- Defined in:
- app/models/design_management/version.rb
Instance Attribute Summary collapse
-
#actions ⇒ Object
readonly
Returns the value of attribute actions.
-
#issue_id ⇒ Object
readonly
Returns the value of attribute issue_id.
-
#sha ⇒ Object
readonly
Returns the value of attribute sha.
Instance Method Summary collapse
-
#initialize(sha, issue_id, actions) ⇒ CouldNotCreateVersion
constructor
A new instance of CouldNotCreateVersion.
- #message ⇒ Object
- #sentry_extra_data ⇒ Object
Constructor Details
#initialize(sha, issue_id, actions) ⇒ CouldNotCreateVersion
Returns a new instance of CouldNotCreateVersion.
16 17 18 19 20 |
# File 'app/models/design_management/version.rb', line 16 def initialize(sha, issue_id, actions) @sha = sha @issue_id = issue_id @actions = actions end |
Instance Attribute Details
#actions ⇒ Object (readonly)
Returns the value of attribute actions.
14 15 16 |
# File 'app/models/design_management/version.rb', line 14 def actions @actions end |
#issue_id ⇒ Object (readonly)
Returns the value of attribute issue_id.
14 15 16 |
# File 'app/models/design_management/version.rb', line 14 def issue_id @issue_id end |
#sha ⇒ Object (readonly)
Returns the value of attribute sha.
14 15 16 |
# File 'app/models/design_management/version.rb', line 14 def sha @sha end |
Instance Method Details
#message ⇒ Object
22 23 24 |
# File 'app/models/design_management/version.rb', line 22 def "could not create version from commit: #{sha}" end |
#sentry_extra_data ⇒ Object
26 27 28 29 30 31 32 |
# File 'app/models/design_management/version.rb', line 26 def sentry_extra_data { sha: sha, issue_id: issue_id, design_ids: actions.map { |a| a.design.id } } end |