Class: Lapidarist::Attempt
- Inherits:
-
Object
- Object
- Lapidarist::Attempt
- Defined in:
- lib/lapidarist/gem.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(status:, reason:, version:) ⇒ Attempt
constructor
A new instance of Attempt.
- #updated? ⇒ Boolean
Constructor Details
#initialize(status:, reason:, version:) ⇒ Attempt
12 13 14 15 16 |
# File 'lib/lapidarist/gem.rb', line 12 def initialize(status:, reason:, version:) @status = status @reason = reason @version = version end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
10 11 12 |
# File 'lib/lapidarist/gem.rb', line 10 def reason @reason end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
10 11 12 |
# File 'lib/lapidarist/gem.rb', line 10 def status @status end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
10 11 12 |
# File 'lib/lapidarist/gem.rb', line 10 def version @version end |
Instance Method Details
#updated? ⇒ Boolean
18 19 20 |
# File 'lib/lapidarist/gem.rb', line 18 def updated? status == :updated end |