Class: Google::APIClient::Service::Resource
- Inherits:
-
Object
- Object
- Google::APIClient::Service::Resource
- 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
-
#initialize(service, root) ⇒ Resource
constructor
Build a resource.
Methods included from StubGenerator
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.
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 |