Module: Gupshup::REST
- Defined in:
- lib/gupshup-rb/rest/api.rb,
lib/gupshup-rb/rest/api/v1.rb,
lib/gupshup-rb/rest/client.rb,
lib/gupshup-rb/framework/rest/page.rb,
lib/gupshup-rb/rest/api/v1/message.rb,
lib/gupshup-rb/framework/rest/error.rb,
lib/gupshup-rb/framework/rest/domain.rb,
lib/gupshup-rb/framework/rest/helper.rb,
lib/gupshup-rb/framework/rest/version.rb,
lib/gupshup-rb/framework/rest/resource.rb,
lib/gupshup-rb/framework/rest/obsolete_client.rb
Defined Under Namespace
Classes: Api, Client, Domain, GupshupError, InstanceContext, InstanceResource, ListResource, ObsoleteClient, ObsoleteError, Page, RestError, Version
Instance Method Summary collapse
Instance Method Details
#url_join(left, right) ⇒ Object
5 6 7 8 9 |
# File 'lib/gupshup-rb/framework/rest/helper.rb', line 5 def url_join(left, right) left = left.sub(/\/+$/, '').sub(/^\/+/, '') right = right.sub(/\/+$/, '').sub(/^\/+/, '') "#{left}/#{right}" end |