Class: SimCtl::DeviceType

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#initialize

Constructor Details

This class inherits a constructor from SimCtl::Object

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



5
6
7
# File 'lib/simctl/device_type.rb', line 5

def identifier
  @identifier
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/simctl/device_type.rb', line 5

def name
  @name
end

Instance Method Details

#==(other) ⇒ Object



7
8
9
10
11
# File 'lib/simctl/device_type.rb', line 7

def ==(other)
  return false if other.nil?
  return false unless other.is_a? DeviceType
  other.identifier == identifier
end