Method: OldApiResource::Base.element_path
- Defined in:
- lib/old_api_resource/base.rb
.element_path(id, prefix_options = {}, query_options = nil) ⇒ Object
alias_method :set_prefix, :prefix= alias_method :set_element_name, :element_name= alias_method :set_collection_name, :collection_name=
170 171 172 173 |
# File 'lib/old_api_resource/base.rb', line 170 def element_path(id, = {}, = nil) , = () if .nil? "#{prefix()}#{collection_name}/#{URI.escape id.to_s}.#{format.extension}#{query_string()}" end |