Class: Dependabot::Workspace::ChangeAttempt
- Inherits:
-
Object
- Object
- Dependabot::Workspace::ChangeAttempt
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/workspace/change_attempt.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#memo ⇒ Object
readonly
Returns the value of attribute memo.
-
#workspace ⇒ Object
readonly
Returns the value of attribute workspace.
Instance Method Summary collapse
- #error? ⇒ Boolean
-
#initialize(workspace, id:, memo:, error: nil) ⇒ ChangeAttempt
constructor
A new instance of ChangeAttempt.
- #success? ⇒ Boolean
Constructor Details
#initialize(workspace, id:, memo:, error: nil) ⇒ ChangeAttempt
Returns a new instance of ChangeAttempt.
31 32 33 34 35 36 |
# File 'lib/dependabot/workspace/change_attempt.rb', line 31 def initialize(workspace, id:, memo:, error: nil) @workspace = workspace @id = id @memo = memo @error = error end |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error.
12 13 14 |
# File 'lib/dependabot/workspace/change_attempt.rb', line 12 def error @error end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
15 16 17 |
# File 'lib/dependabot/workspace/change_attempt.rb', line 15 def id @id end |
#memo ⇒ Object (readonly)
Returns the value of attribute memo.
18 19 20 |
# File 'lib/dependabot/workspace/change_attempt.rb', line 18 def memo @memo end |
#workspace ⇒ Object (readonly)
Returns the value of attribute workspace.
21 22 23 |
# File 'lib/dependabot/workspace/change_attempt.rb', line 21 def workspace @workspace end |
Instance Method Details
#error? ⇒ Boolean
44 45 46 |
# File 'lib/dependabot/workspace/change_attempt.rb', line 44 def error? !error.nil? end |
#success? ⇒ Boolean
39 40 41 |
# File 'lib/dependabot/workspace/change_attempt.rb', line 39 def success? error.nil? end |