class Google::APIClient::Service::Resource

Handles an API resource. Simple class that contains API methods and/or child resources.

Public Class Methods

new(service, root) click to toggle source

Build a resource. This class should not be directly instantiated in user code; resources are instantiated by the stub generation mechanism on Service creation.

@param [Google::APIClient::Service] service

The Service instance this resource belongs to.

@param [Google::APIClient::API, Google::APIClient::Resource] root

The node corresponding to this resource.
# File lib/google/api_client/service/resource.rb, line 33
def initialize(service, root)
  @service = service
  generate_call_stubs(service, root)
end