Get the id attribute of the resource.
# File active_resource/base.rb, line 559 def id attributes[self.class.primary_key] end
<code/>
<pre/>
<code/>and<pre/>for code samples.