Class: ReveAI::Resources::V2
- Inherits:
-
Object
- Object
- ReveAI::Resources::V2
- Defined in:
- lib/reve_ai/resources/v2.rb,
lib/reve_ai/resources/v2/images.rb,
lib/reve_ai/resources/v2/layouts.rb
Overview
Namespace for Reve API v2 resources.
Accessed via client.v2. Groups the v2 image create endpoint and the
experimental layout pipeline endpoints.
Defined Under Namespace
Instance Attribute Summary collapse
-
#client ⇒ Client
readonly
The client instance for this namespace.
Instance Method Summary collapse
-
#images ⇒ V2::Images
Returns the v2 images resource.
-
#initialize(client) ⇒ V2
constructor
private
Creates a new v2 namespace.
-
#layouts ⇒ V2::Layouts
Returns the v2 layouts resource (experimental endpoints).
Constructor Details
#initialize(client) ⇒ V2
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 v2 namespace.
23 24 25 |
# File 'lib/reve_ai/resources/v2.rb', line 23 def initialize(client) @client = client end |
Instance Attribute Details
#client ⇒ Client (readonly)
Returns The client instance for this namespace.
17 18 19 |
# File 'lib/reve_ai/resources/v2.rb', line 17 def client @client end |
Instance Method Details
#images ⇒ V2::Images
Returns the v2 images resource.
30 31 32 |
# File 'lib/reve_ai/resources/v2.rb', line 30 def images @images ||= Images.new(client) end |
#layouts ⇒ V2::Layouts
Returns the v2 layouts resource (experimental endpoints).
37 38 39 |
# File 'lib/reve_ai/resources/v2.rb', line 37 def layouts @layouts ||= Layouts.new(client) end |