Module: Automatic1111::Configurable
- Included in:
- Automatic1111, Client
- Defined in:
- lib/automatic1111/configurable.rb
Instance Attribute Summary collapse
-
#api_endpoint_url ⇒ Object
Returns the value of attribute api_endpoint_url.
-
#cookie ⇒ Object
Returns the value of attribute cookie.
-
#read_timeout ⇒ Object
Returns the value of attribute read_timeout.
Class Method Summary collapse
-
.keys ⇒ Array
List of configurable keys for Datatrans::Client.
Instance Method Summary collapse
-
#configure {|_self| ... } ⇒ Object
Set configuration options using a block.
Instance Attribute Details
#api_endpoint_url ⇒ Object
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 |
#cookie ⇒ Object
Returns the value of attribute cookie.
5 6 7 |
# File 'lib/automatic1111/configurable.rb', line 5 def @cookie end |
#read_timeout ⇒ Object
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
.keys ⇒ Array
List of configurable keys for Datatrans::Client
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
16 17 18 |
# File 'lib/automatic1111/configurable.rb', line 16 def configure yield self end |