Class: ReveAI::Resources::Base Abstract Private
- Inherits:
-
Object
- Object
- ReveAI::Resources::Base
- Defined in:
- lib/reve_ai/resources/base.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Subclass and implement endpoint-specific methods
Base class for API resources with common validation methods.
Provides HTTP client access and input validation for all resource classes.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#client ⇒ Client
readonly
private
The client instance for this resource.
Instance Method Summary collapse
-
#initialize(client) ⇒ Base
constructor
private
Creates a new resource instance.
Constructor Details
#initialize(client) ⇒ Base
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates a new resource instance.
22 23 24 |
# File 'lib/reve_ai/resources/base.rb', line 22 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Client (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The client instance for this resource.
16 17 18 |
# File 'lib/reve_ai/resources/base.rb', line 16 def client @client end |