Skip to content

Pipedrive id is inaccessible due to OpenStruct id #5

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

Closed
lisadu opened this issue Jun 29, 2013 · 2 comments
Closed

Pipedrive id is inaccessible due to OpenStruct id #5

lisadu opened this issue Jun 29, 2013 · 2 comments
Labels

Comments

@lisadu
Copy link

lisadu commented Jun 29, 2013

The id field returns the object id, not pipedrive id. For example, this will produce
warning: Object#id will be deprecated; use Object#object_id

person = Pipedrive::Person.create
person.id

See http://stackoverflow.com/questions/4725329/override-id-on-a-ruby-object-created-using-openstruct

@mkrebber
Copy link

mkrebber commented Jul 1, 2013

Please revert commit #fd8fd5f, cause it totally breaks the Pipedrive::Base class.
Property id is not defined for OpenStruct class. Thx.

/lib/pipedrive/base.rb:17:in <class:Base>': undefined methodid' for class `Pipedrive::Base' (NameError)

@jeanmartin
Copy link
Member

done, sorry, I should've checked before following the advice...

ml pushed a commit to ml/pipedrive-ruby that referenced this issue Jan 31, 2019
Fixed organization getter if no org_id set in Activity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants