Method: Macker#update

Defined in:
lib/macker.rb

#update(straight = false) ⇒ Time

Update all OUI tables

Parameters:

  • straight (Boolean) (defaults to: false)

    true for straight, default is careful

Returns:

  • (Time)

    timestamp of the update



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/macker.rb', line 47

def update(straight = false)
  @prefix_table = {}
  @iso_code_table = {}
  @vendor_table = {}
  vendor_list(straight)
  @mem_timestamp = if config.cache.is_a?(Proc)
                     proc_timestamp
                   else
                     file_timestamp
                   end
end