lib/simctl/runtime.rb in simctl-1.6.5 vs lib/simctl/runtime.rb in simctl-1.6.6

- old
+ new

@@ -1,10 +1,22 @@ require 'naturally' require 'simctl/object' module SimCtl class Runtime < Object - attr_reader :availability, :buildversion, :identifier, :name, :type, :version + extend Gem::Deprecate + + attr_reader :buildversion, :identifier, :is_available, :name, :type, :version + + def initialize(args) + args['is_available'] = args.delete('isAvailable') + super + end + + def availability + is_available + end + deprecate :availability, :is_available, 2020, 8 def type @type ||= name.split("\s").first.downcase.to_sym end