Class: Gcloud::Search::APIClient::DiscoveredApi
- Inherits:
-
Object
- Object
- Gcloud::Search::APIClient::DiscoveredApi
- Defined in:
- lib/gcloud/search/api_client.rb
Overview
Return type for APIClient#discovered_api
Instance Method Summary collapse
- #documents ⇒ Object
- #indexes ⇒ Object
-
#initialize(name, version) ⇒ DiscoveredApi
constructor
:nodoc:.
Constructor Details
#initialize(name, version) ⇒ DiscoveredApi
:nodoc:
54 55 56 57 |
# File 'lib/gcloud/search/api_client.rb', line 54 def initialize name, version @name = name @version = version end |
Instance Method Details
#documents ⇒ Object
63 64 65 66 67 68 |
# File 'lib/gcloud/search/api_client.rb', line 63 def documents ResourcePath.new @name, @version, "indexes/{indexId}/documents", "docId" end |
#indexes ⇒ Object
59 60 61 |
# File 'lib/gcloud/search/api_client.rb', line 59 def indexes IndexResourcePath.new @name, @version, "indexes", "indexId" end |