app/models/manager_refresh/inventory_collection/reference.rb
# Returns original Hash, or build hash out of passed string
#
# @param data [Hash, String] Passed data
# @param keys [Array<Symbol>] Keys for the reference
# @return [Hash] Original Hash, or build hash out of passed string
Returns original Hash, or build hash out of passed string
Returns original Hash or build hash out of passed string
def build_full_reference(data, keys)
        if data.kind_of?(Hash)
          data
        else
          {keys.first => data}
        end
      end
def build_full_reference ( data , keys ) if data . kind_of? ( Hash ) data else { keys . first => data } end end
Returns original Hash, or build hash out of passed string
Returns original Hash or build hash out of passed string
# assert_index makes sure that only keys of size 1 can go here
Original Hash, or build hash out of passed string
Original Hash or build hash out of passed string
Hash
data
None
keys
Keys for the reference
Keys for the reference