Module: Google::Developers::DeveloperKnowledge::V1::DeveloperKnowledge::Paths

Extended by:
Paths
Included in:
Client, Paths, Rest::Client
Defined in:
lib/google/developers/developer_knowledge/v1/developer_knowledge/paths.rb

Overview

Path helper methods for the DeveloperKnowledge API.

Instance Method Summary collapse

Instance Method Details

#document_path(document:) ⇒ ::String

Create a fully-qualified Document resource string.

The resource will be in the following format:

documents/{document}

Parameters:

  • document (String)

Returns:

  • (::String)


37
38
39
# File 'lib/google/developers/developer_knowledge/v1/developer_knowledge/paths.rb', line 37

def document_path document:
  "documents/#{document}"
end