-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client.meta.users #36
Comments
I ran into this today so I cloned the gem and added a 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")
require "pry"; binding.pry
result["#{action}s".to_sym][action]
end
end
end
end
end I then tested each of the defined methods and found:
I'm going to cut a PR that fixes |
@mjording thanks for giving this solution. Bamboo hr api has no any explanation about this. |
@mjording https://github.com/Skookum/bamboozled/blob/master/examples/employees_over_time.rb |
Fix Issue #36: client.meta.users failing
Hi
Following function is not working as expected.
client.meta.users
Getting this exception from gem
NoMethodError: undefined method
[]' for nil:NilClass from /home/zee/.rvm/gems/ruby-2.3.3/gems/bamboozled-0.1.0/lib/bamboozled/api/meta.rb:8:in
block (2 levels) in class:Meta'from (irb):280
Hope you will fix it
Thanks
The text was updated successfully, but these errors were encountered: