static public Method

Base.site

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

Source Code

# File active_resource/base.rb, line 166
def site
  if defined?(@site)
    @site
  elsif superclass != Object && superclass.site
    superclass.site.dup.freeze
  end
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.