Sha256: edfd4c6c07f01d73544b4de6dcc2e2a38a6359de669bf482417f030925da3161

Contents?: true

Size: 286 Bytes

Versions: 5

Compression:

Stored size: 286 Bytes

Contents

module Bamboozled
  module API
    class Meta < Base

      [:field, :table, :list, :user].each do |action|
        define_method("#{action}s") do
          result = request(:get, "meta/#{action}s")
          result["#{action}s".to_sym][action]
        end
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bamboozled-0.1.0 lib/bamboozled/api/meta.rb
bamboozled-0.0.7 lib/bamboozled/api/meta.rb
bamboozled-0.0.6 lib/bamboozled/api/meta.rb
bamboozled-0.0.5 lib/bamboozled/api/meta.rb
bamboozled-0.0.4 lib/bamboozled/api/meta.rb