Skip to content
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

repos.pull_request.all: Calling links on LinkHashie::Mash Result Causes NameError #88

Open
sshaw opened this issue Jul 23, 2017 · 0 comments

Comments

@sshaw
Copy link

sshaw commented Jul 23, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant