Class: SimCtl::Object

Inherits:
Object
  • Object
show all
Defined in:
lib/simctl/object.rb

Direct Known Subclasses

Device, DeviceType, Runtime

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Object

Returns a new instance of Object.



3
4
5
6
7
# File 'lib/simctl/object.rb', line 3

def initialize(args)
  args.each do |k, v|
    instance_variable_set("@#{k}", v) unless v.nil?
  end
end