Class: Mxrb::CLI::ReleaseStatus

Inherits:
Data
  • Object
show all
Defined in:
lib/mxrb/cli/release.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#checked_atObject (readonly)

Returns the value of attribute checked_at

Returns:

  • (Object)

    the current value of checked_at



15
16
17
# File 'lib/mxrb/cli/release.rb', line 15

def checked_at
  @checked_at
end

#installedObject (readonly)

Returns the value of attribute installed

Returns:

  • (Object)

    the current value of installed



15
16
17
# File 'lib/mxrb/cli/release.rb', line 15

def installed
  @installed
end

#latestObject (readonly)

Returns the value of attribute latest

Returns:

  • (Object)

    the current value of latest



15
16
17
# File 'lib/mxrb/cli/release.rb', line 15

def latest
  @latest
end

Instance Method Details

#available?Boolean

Returns:

  • (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