Class: Google::APIClient::Service::Resource

Inherits:
Object
  • Object
show all
Includes:
StubGenerator
Defined in:
lib/google/api_client/service/resource.rb

Overview

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

Instance Method Summary collapse

Methods included from StubGenerator

#generate_call_stubs

Constructor Details

#initialize(service, root) ⇒ Resource

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

Parameters:



33
34
35
36
# File 'lib/google/api_client/service/resource.rb', line 33

def initialize(service, root)
  @service = service
  generate_call_stubs(service, root)
end