Class: RunLoop::Device

Inherits:
Object
  • Object
show all
Defined in:
lib/run_loop/device.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, version, udid) ⇒ Device

Returns a new instance of Device.



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/run_loop/device.rb', line 8

def initialize(name, version, udid)
  @name = name

  if version.is_a? String
    @version = RunLoop::Version.new version
  else
    @version = version
  end

  @udid = udid
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/run_loop/device.rb', line 4

def name
  @name
end

#udidObject (readonly)

Returns the value of attribute udid.



6
7
8
# File 'lib/run_loop/device.rb', line 6

def udid
  @udid
end

#versionObject (readonly)

Returns the value of attribute version.



5
6
7
# File 'lib/run_loop/device.rb', line 5

def version
  @version
end