Expose id() and type() in doc classes #5

clintongormley opened this Issue Aug 6, 2012 · 0 comments


None yet

1 participant


You can get the id etc from


but it'd be convenient to expose id and type directly in the doc. Add them as ordinary methods to Elastic::Model::Role::Doc so that they can be renamed when importing

@clintongormley clintongormley added a commit that closed this issue Aug 14, 2012
@clintongormley Added id() and type() convenience methods on Elastic::Model::Role::Doc
which call the equivalent method on the doc's UID

Fixes #5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment