Class: Gcloud::Search::APIClient::DiscoveredApi

Inherits:
Object
  • Object
show all
Defined in:
lib/gcloud/search/api_client.rb

Overview

Return type for APIClient#discovered_api

Instance Method Summary collapse

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

#documentsObject



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

#indexesObject



59
60
61
# File 'lib/gcloud/search/api_client.rb', line 59

def indexes
  IndexResourcePath.new @name, @version, "indexes", "indexId"
end