class SimCtl::Runtime
Attributes
buildversion[R]
identifier[R]
is_available[R]
name[R]
type[R]
version[R]
Public Class Methods
latest(type)
click to toggle source
Returns the latest available runtime
@param name [String] type (ios, watchos, tvos) @return [SimCtl::Runtime] the latest available runtime
# File lib/simctl/runtime.rb, line 34 def self.latest(type) Naturally.sort_by(SimCtl.list_runtimes.where(name: /#{type}/i), :version).last end
new(args)
click to toggle source
Calls superclass method
SimCtl::Object::new
# File lib/simctl/runtime.rb, line 10 def initialize(args) args['is_available'] = args.delete('isAvailable') super end
Public Instance Methods
==(other)
click to toggle source
# File lib/simctl/runtime.rb, line 24 def ==(other) return false if other.nil? return false unless other.is_a? Runtime other.identifier == identifier end
availability()
click to toggle source
# File lib/simctl/runtime.rb, line 15 def availability is_available end