Using 0.1.7:
r = cl.repos.pull_request.all("zck", "2048.el")
r.values[1].each do |pr|
p pr.author.username
p pr.links.self.href
# This does not cause the error
# p pr["links"].self.href
end
Error is:
/Users/sshaw/.rvm/gems/ruby-2.2.3/gems/bitbucket_rest_api-0.1.7/lib/bitbucket_rest_api/result.rb:64:in `links': uninitialized constant BitBucket::PageLinks (NameError)
from bb.rb:32:in `block in <main>'
from bb.rb:30:in `each'
from bb.rb:30:in `<main>'
Calling pr["links"].self.href does not cause the error.