Method: WebHDFS.api_path
- Defined in:
- lib/webhdfs/utilities.rb
.api_path(path) ⇒ Object
Path to access API
6 7 8 9 10 11 12 |
# File 'lib/webhdfs/utilities.rb', line 6 def self.api_path(path) if path.start_with?('/') '/webhdfs/v1' + path else '/webhdfs/v1/' + path end end |