Class: Automatic1111::Client
- Inherits:
-
Object
- Object
- Automatic1111::Client
- Includes:
- Configurable, Connection
- Defined in:
- lib/automatic1111/client.rb
Instance Attribute Summary
Attributes included from Configurable
#api_endpoint_url, #cookie, #read_timeout
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Connection
#delete, #get, #head, #last_response, #patch, #post, #put
Methods included from Configurable
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
11 12 13 14 15 16 17 |
# File 'lib/automatic1111/client.rb', line 11 def initialize( = {}) # Use options passed in, but fall back to module defaults Automatic1111::Configurable.keys.each do |key| value = .key?(key) ? [key] : Automatic1111.instance_variable_get(:"@#{key}") instance_variable_set(:"@#{key}", value) end end |