static public Method

Base.site=(site)

Sets the URI of the REST resources to map for this class to the value in the site argument. The site variable is required ActiveResource’s mapping to work.

Source Code

# File active_resource/base.rb, line 176
def site=(site)
  @connection = nil
  @site = site.nil? ? nil : create_site_uri_from(site)
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.