public Method

Base.id=(id)

Set the id attribute of the resource.

Source Code

# File active_resource/base.rb, line 564
def id=(id)
  attributes[self.class.primary_key] = id
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.