Class: Roseflow::StabilityAI::Provider
- Inherits:
-
Object
- Object
- Roseflow::StabilityAI::Provider
- Defined in:
- lib/roseflow/stabilityai/provider.rb
Instance Method Summary collapse
- #call(operation, options, &block) ⇒ Object
- #client ⇒ Object
-
#initialize(config = Config.new) ⇒ Provider
constructor
A new instance of Provider.
- #models ⇒ Object
Constructor Details
Instance Method Details
#call(operation, options, &block) ⇒ Object
18 19 20 |
# File 'lib/roseflow/stabilityai/provider.rb', line 18 def call(operation, , &block) models.find(.fetch(:engine_id)).call(operation, , &block) end |
#client ⇒ Object
14 15 16 |
# File 'lib/roseflow/stabilityai/provider.rb', line 14 def client @client ||= Client.new(config, self) end |
#models ⇒ Object
10 11 12 |
# File 'lib/roseflow/stabilityai/provider.rb', line 10 def models @models ||= ModelRepository.new(self) end |