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

Closed
clintongormley opened this Issue Aug 6, 2012 · 0 comments

Projects

None yet

1 participant

@clintongormley
Owner

You can get the id etc from

$doc->uid->id

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
1d460a0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment