Module: Automatic1111::Configurable

Included in:
Automatic1111, Client
Defined in:
lib/automatic1111/configurable.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_endpoint_urlObject

Returns the value of attribute api_endpoint_url.



5
6
7
# File 'lib/automatic1111/configurable.rb', line 5

def api_endpoint_url
  @api_endpoint_url
end

Returns the value of attribute cookie.



5
6
7
# File 'lib/automatic1111/configurable.rb', line 5

def cookie
  @cookie
end

#read_timeoutObject

Returns the value of attribute read_timeout.



5
6
7
# File 'lib/automatic1111/configurable.rb', line 5

def read_timeout
  @read_timeout
end

Class Method Details

.keysArray

List of configurable keys for Datatrans::Client

Returns:

  • (Array)

    of option keys



10
11
12
# File 'lib/automatic1111/configurable.rb', line 10

def keys
  @keys ||= %i[api_endpoint_url cookie read_timeout]
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Set configuration options using a block

Yields:

  • (_self)

Yield Parameters:



16
17
18
# File 'lib/automatic1111/configurable.rb', line 16

def configure
  yield self
end