Class: SimCtl::DeviceType
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
Methods inherited from Object
Constructor Details
This class inherits a constructor from SimCtl::Object
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
5 6 7 |
# File 'lib/simctl/device_type.rb', line 5 def identifier @identifier end |
#name ⇒ Object (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 |