Method: ONIX::Lists#list

Defined in:
lib/onix/lists.rb

#list(number) ⇒ Object

return a hash with the data for a single code list.

number should be a fixnum specifying the list to retrieve

ONIX::Lists.instance.list(7)
=> { "BB" => "Hardback", ... }


90
91
92
# File 'lib/onix/lists.rb', line 90

def list(number)
  cache[number] ||= build_hash(number)
end