Sha256: 2f783b90348af9366244798f1cadb54ae8c68c25cd2cdfa51492ee4999162bb4

Contents?: true

Size: 276 Bytes

Versions: 73

Compression:

Stored size: 276 Bytes

Contents

# encoding: 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

73 entries across 73 versions & 1 rubygems

Version Path
mutx-0.1.18 lib/mutx/API/path.rb
mutx-0.1.17 lib/mutx/API/path.rb
mutx-0.1.16 lib/mutx/API/path.rb
mutx-0.1.15 lib/mutx/API/path.rb
mutx-0.1.14 lib/mutx/API/path.rb
mutx-0.1.13 lib/mutx/API/path.rb
mutx-0.1.12 lib/mutx/API/path.rb
mutx-0.1.11 lib/mutx/API/path.rb
mutx-0.1.10 lib/mutx/API/path.rb
mutx-0.1.9 lib/mutx/API/path.rb
mutx-0.1.8 lib/mutx/API/path.rb
mutx-0.1.7 lib/mutx/API/path.rb
mutx-0.1.6 lib/mutx/API/path.rb