lib/imgurr/storage.rb
# Take a JSON representation of data and explode it out into the constituent
# Lists and Items for the given Storage instance.
#
# Returns all hashes.
Take a JSON representation of data and explode it out into the constituent
Lists and Items for the given Storage instance.

Returns all hashes.
Take a JSON representation of data and explode it out into the constituent Lists and Items for the given Storage instance . Returns all hashes .
def populate
      file = File.read(json_file)
      storage = JSON.parse(file, :symbolize_names => true)
      @hashes = storage[:hashes]
      convert if @hashes.is_a? Array
      @hashes
    end
def populate file = File . read ( json_file ) storage = JSON . parse ( file , :symbolize_names => true ) @hashes = storage [ :hashes ] convert if @hashes . is_a? Array @hashes end
Take a JSON representation of data and explode it out into the constituent
Lists and Items for the given Storage instance.
Take a JSON representation of data and explode it out into the constituent Lists and Items for the given Storage instance .