Method: ComputeUnit::Device#generic_model

Defined in:
lib/compute_unit/device.rb

#generic_modelString

Returns - the name of the device model (sometimes not specific).

Returns:

  • (String)
    • the name of the device model (sometimes not specific)



121
122
123
124
125
126
# File 'lib/compute_unit/device.rb', line 121

def generic_model
  @generic_model ||= begin
    name = self.class.device_lookup(device_id)
    name[/\[?(.*)\]?/, 1] if name
  end
end