Skip to content

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

@sshaw

Description

@sshaw

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions