Sha256: 16024622d4b5691635a4c9eefe82d0a18facc27338a19358e78176dabdb7fd54

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

# enconding: utf-8
module Mutx
  module API
    class Path

      def self.data data, query_string
          query_string.split(".").each do |key|
            key = key.to_i if key =~ /^\d+$/
            data = data[key]
          end
          data
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mutx-0.1.4 lib/mutx/API/path.rb
mutx-0.1.3 lib/mutx/API/path.rb