Class: Restforce::Data::Client
- Inherits:
-
AbstractClient
- Object
- AbstractClient
- Restforce::Data::Client
- Includes:
- Concerns::Canvas, Concerns::Picklists, Concerns::Streaming
- Defined in:
- lib/restforce/data/client.rb
Instance Attribute Summary
Attributes included from Concerns::Base
Instance Method Summary collapse
-
#url(resource) ⇒ Object
Public: Returns a url to the resource.
Methods included from Concerns::Canvas
Methods included from Concerns::Picklists
Methods included from Concerns::Streaming
#faye, #legacy_subscribe, #replay_handlers, #subscription
Methods included from Concerns::CompositeAPI
Methods included from Concerns::Verbs
#define_api_verb, #define_verb, #define_verbs
Methods included from Concerns::BatchAPI
Methods included from Concerns::API
#create, #create!, #describe, #describe_layouts, #destroy, #destroy!, #explain, #find, #get_deleted, #get_updated, #limits, #list_sobjects, #org_id, #query, #query_all, #recent, #search, #select, #update, #update!, #upsert, #upsert!, #user_info
Methods included from Concerns::Caching
#with_caching, #without_caching
Methods included from Concerns::Authentication
#authenticate!, #authentication_middleware, #client_credential?, #jwt?, #oauth_refresh?, #username_password?
Methods included from Concerns::Connection
Methods included from Concerns::Base
#initialize, #inspect, #instance_url
Instance Method Details
#url(resource) ⇒ Object
Public: Returns a url to the resource.
resource - A record that responds to to_sparam or a String/Fixnum.
Returns the url to the resource.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/restforce/data/client.rb', line 15 def url(resource) resource_name_for_url = if resource.respond_to?(:to_sparam) resource.to_sparam else resource end "#{instance_url}/#{resource_name_for_url}" end |