Class: Mxrb::CLI::ReleaseStatus
- Inherits:
-
Data
- Object
- Data
- Mxrb::CLI::ReleaseStatus
- Defined in:
- lib/mxrb/cli/release.rb
Instance Attribute Summary collapse
-
#checked_at ⇒ Object
readonly
Returns the value of attribute checked_at.
-
#installed ⇒ Object
readonly
Returns the value of attribute installed.
-
#latest ⇒ Object
readonly
Returns the value of attribute latest.
Instance Method Summary collapse
Instance Attribute Details
#checked_at ⇒ Object (readonly)
Returns the value of attribute checked_at
15 16 17 |
# File 'lib/mxrb/cli/release.rb', line 15 def checked_at @checked_at end |
#installed ⇒ Object (readonly)
Returns the value of attribute installed
15 16 17 |
# File 'lib/mxrb/cli/release.rb', line 15 def installed @installed end |
#latest ⇒ Object (readonly)
Returns the value of attribute latest
15 16 17 |
# File 'lib/mxrb/cli/release.rb', line 15 def latest @latest end |
Instance Method Details
#available? ⇒ Boolean
16 17 18 19 20 |
# File 'lib/mxrb/cli/release.rb', line 16 def available? latest && Gem::Version.new(latest) > Gem::Version.new(installed) rescue ArgumentError false end |