method
site=
rails latest stable - Class:
ActiveResource::Connection
Method deprecated or moved
This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.
site=(site)public
Set URI for remote service.
# File activeresource/lib/active_resource/connection.rb, line 41
def site=(site)
@site = site.is_a?(URI) ? site : URI.parser.parse(site)
@user = URI.parser.unescape(@site.user) if @site.user
@password = URI.parser.unescape(@site.password) if @site.password
end Related methods
- Instance methods
- auth_type=
- delete
- get
- head
- password=
- post
- proxy=
- put
- site=
- ssl_options=
- timeout=
- user=
- Class methods
- new
- requests
- Private methods
-
apply_ssl_options -
auth_attributes_for -
authorization_header -
build_request_headers -
client_nonce -
configure_http -
default_header -
digest_auth_header -
extract_params_from_response -
handle_response -
http -
http_format_header -
legitimize_auth_type -
new_http -
request -
response_auth_header -
with_auth