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.38 lib/mutx/API/path.rb
mutx-0.1.37 lib/mutx/API/path.rb
mutx-0.1.36 lib/mutx/API/path.rb
mutx-0.1.35 lib/mutx/API/path.rb
mutx-0.1.34 lib/mutx/API/path.rb
mutx-0.1.33 lib/mutx/API/path.rb
mutx-0.1.32 lib/mutx/API/path.rb
mutx-0.1.31 lib/mutx/API/path.rb
mutx-0.1.30 lib/mutx/API/path.rb
mutx-0.1.29 lib/mutx/API/path.rb
mutx-0.1.28 lib/mutx/API/path.rb
mutx-0.1.27 lib/mutx/API/path.rb
mutx-0.1.26 lib/mutx/API/path.rb
mutx-0.1.25 lib/mutx/API/path.rb
mutx-0.1.24 lib/mutx/API/path.rb
mutx-0.1.23 lib/mutx/API/path.rb
mutx-0.1.22 lib/mutx/API/path.rb
mutx-0.1.21 lib/mutx/API/path.rb
mutx-0.1.20 lib/mutx/API/path.rb
mutx-0.1.19 lib/mutx/API/path.rb