Module: RubyLokaliseApi::Utils::EndpointHelpers
- Included in:
- Collections::Base, Resources::Base
- Defined in:
- lib/ruby_lokalise_api/utils/endpoint_helpers.rb
Instance Method Summary collapse
Instance Method Details
#path_from(raw_mapping) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/ruby_lokalise_api/utils/endpoint_helpers.rb', line 6 def path_from(raw_mapping) template = Addressable::Template.new '{/segments*}' template.( segments: raw_mapping.to_a.flatten ).to_s end |