Class: DeviceMap::DeviceData::Builder::Simple

Inherits:
Struct
  • Object
show all
Defined in:
lib/device_map/device_data/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#priorityObject

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



25
26
27
# File 'lib/device_map/device_data/builder.rb', line 25

def priority
  @priority
end

Instance Method Details

#patterns(device_id, keywords) ⇒ Object



26
27
28
29
30
# File 'lib/device_map/device_data/builder.rb', line 26

def patterns(device_id, keywords)
  keywords.map do |keyword|
    Pattern.new(keyword, device_id, priority)
  end
end