lib/simctl/runtime.rb in simctl-1.5.8 vs lib/simctl/runtime.rb in simctl-1.6.0

- old
+ new

@@ -1,10 +1,14 @@ require 'naturally' require 'simctl/object' module SimCtl class Runtime < Object - attr_reader :availability, :buildversion, :identifier, :name, :version + attr_reader :availability, :buildversion, :identifier, :name, :type, :version + + def type + @type ||= name.split("\s").first.downcase.to_sym + end def ==(other) return false if other.nil? return false unless other.kind_of? Runtime other.identifier == identifier