Class: SimCtl::Runtime
Instance Attribute Summary collapse
-
#availability ⇒ Object
readonly
Returns the value of attribute availability.
-
#buildversion ⇒ Object
readonly
Returns the value of attribute buildversion.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
-
.latest(type) ⇒ SimCtl::Runtime
Returns the latest available runtime.
Instance Method Summary collapse
Methods inherited from Object
Constructor Details
This class inherits a constructor from SimCtl::Object
Instance Attribute Details
#availability ⇒ Object (readonly)
Returns the value of attribute availability.
5 6 7 |
# File 'lib/simctl/runtime.rb', line 5 def availability @availability end |
#buildversion ⇒ Object (readonly)
Returns the value of attribute buildversion.
5 6 7 |
# File 'lib/simctl/runtime.rb', line 5 def buildversion @buildversion end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
5 6 7 |
# File 'lib/simctl/runtime.rb', line 5 def identifier @identifier end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/simctl/runtime.rb', line 5 def name @name end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/simctl/runtime.rb', line 5 def version @version end |
Class Method Details
.latest(type) ⇒ SimCtl::Runtime
Returns the latest available runtime
17 18 19 |
# File 'lib/simctl/runtime.rb', line 17 def self.latest(type) SimCtl.list_runtimes.where(name: %r|#{type}|i).sort_by {|r| r.version}.reverse.first end |