File tree Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Expand file tree Collapse file tree 6 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def [](rule_name)
24
24
private
25
25
26
26
def endpoint_path ( operation = nil )
27
- "#{ AnalyticsRules ::RESOURCE_PATH } #{ operation . nil? ? '' : "/#{ URI . encode_www_form_component ( operation ) } " } "
27
+ "#{ AnalyticsRules ::RESOURCE_PATH } #{ "/#{ URI . encode_www_form_component ( operation ) } " unless operation . nil? } "
28
28
end
29
29
end
30
30
end
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def truncate
88
88
private
89
89
90
90
def endpoint_path ( operation = nil )
91
- "#{ Collections ::RESOURCE_PATH } /#{ URI . encode_www_form_component ( @collection_name ) } #{ Documents ::RESOURCE_PATH } #{ operation . nil? ? '' : "/#{ operation } " } "
91
+ "#{ Collections ::RESOURCE_PATH } /#{ URI . encode_www_form_component ( @collection_name ) } #{ Documents ::RESOURCE_PATH } #{ "/#{ operation } " unless operation . nil? } "
92
92
end
93
93
end
94
94
end
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def [](override_id)
25
25
private
26
26
27
27
def endpoint_path ( operation = nil )
28
- "#{ Collections ::RESOURCE_PATH } /#{ URI . encode_www_form_component ( @collection_name ) } #{ Overrides ::RESOURCE_PATH } #{ operation . nil? ? '' : "/#{ URI . encode_www_form_component ( operation ) } " } "
28
+ "#{ Collections ::RESOURCE_PATH } /#{ URI . encode_www_form_component ( @collection_name ) } #{ Overrides ::RESOURCE_PATH } #{ "/#{ URI . encode_www_form_component ( operation ) } " unless operation . nil? } "
29
29
end
30
30
end
31
31
end
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def [](preset_name)
24
24
private
25
25
26
26
def endpoint_path ( operation = nil )
27
- "#{ Presets ::RESOURCE_PATH } #{ operation . nil? ? '' : "/#{ URI . encode_www_form_component ( operation ) } " } "
27
+ "#{ Presets ::RESOURCE_PATH } #{ "/#{ URI . encode_www_form_component ( operation ) } " unless operation . nil? } "
28
28
end
29
29
end
30
30
end
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ def [](dict_id)
43
43
private
44
44
45
45
def endpoint_path ( operation = nil )
46
- "#{ StemmingDictionaries ::RESOURCE_PATH } #{ operation . nil? ? '' : "/#{ URI . encode_www_form_component ( operation ) } " } "
46
+ "#{ StemmingDictionaries ::RESOURCE_PATH } #{ "/#{ URI . encode_www_form_component ( operation ) } " unless operation . nil? } "
47
47
end
48
48
end
49
49
end
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ def [](synonym_id)
25
25
private
26
26
27
27
def endpoint_path ( operation = nil )
28
- "#{ Collections ::RESOURCE_PATH } /#{ URI . encode_www_form_component ( @collection_name ) } #{ Synonyms ::RESOURCE_PATH } #{ operation . nil? ? '' : "/#{ URI . encode_www_form_component ( operation ) } " } "
28
+ "#{ Collections ::RESOURCE_PATH } /#{ URI . encode_www_form_component ( @collection_name ) } #{ Synonyms ::RESOURCE_PATH } #{ "/#{ URI . encode_www_form_component ( operation ) } " unless operation . nil? } "
29
29
end
30
30
end
31
31
end
You can’t perform that action at this time.
0 commit comments