Class: ReveAI::Resources::Base Abstract Private

Inherits:
Object
  • Object
show all
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.

This class is abstract.

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

Effects, Images, V2::Images, V2::Layouts

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • client (Client)

    The API client



22
23
24
# File 'lib/reve_ai/resources/base.rb', line 22

def initialize(client)
  @client = client
end

Instance Attribute Details

#clientClient (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.

Returns:

  • (Client)

    The client instance for this resource



16
17
18
# File 'lib/reve_ai/resources/base.rb', line 16

def client
  @client
end