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
<code/>and<pre/>for code samples.