Method: Elastic::WorkplaceSearch::Configuration#endpoint=
- Defined in:
- lib/elastic/workplace-search/configuration.rb
#endpoint=(endpoint) ⇒ Object
setter for endpoint that ensures it always ends in ‘/’
45 46 47 48 49 50 51 |
# File 'lib/elastic/workplace-search/configuration.rb', line 45 def endpoint=(endpoint) if endpoint.end_with?('/') @endpoint = endpoint else @endpoint = "#{endpoint}/" end end |