Class: BellaBaxter::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/bella_baxter/models.rb

Overview

Options for constructing a Client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
# File 'lib/bella_baxter/models.rb', line 11

def initialize(**)
  super
  self.timeout ||= 10
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key

Returns:

  • (Object)

    the current value of api_key



5
6
7
# File 'lib/bella_baxter/models.rb', line 5

def api_key
  @api_key
end

#baxter_urlObject

Returns the value of attribute baxter_url

Returns:

  • (Object)

    the current value of baxter_url



5
6
7
# File 'lib/bella_baxter/models.rb', line 5

def baxter_url
  @baxter_url
end

#timeoutObject

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



5
6
7
# File 'lib/bella_baxter/models.rb', line 5

def timeout
  @timeout
end