Module: Voxbone::Config

Included in:
Voxbone
Defined in:
lib/voxbone/config.rb

Defined Under Namespace

Classes: ConfigError

Constant Summary collapse

ENVIRONMENTS =
{
  production: 'https://api.voxbone.com/ws-voxbone/services/rest/',
  sandbox: 'https://sandbox.voxbone.com/ws-voxbone/services/rest/'
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#environmentObject

Returns the value of attribute environment.



3
4
5
# File 'lib/voxbone/config.rb', line 3

def environment
  @environment
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/voxbone/config.rb', line 3

def password
  @password
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/voxbone/config.rb', line 3

def username
  @username
end

Instance Method Details

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

Yields:

  • (_self)

Yield Parameters:



12
13
14
# File 'lib/voxbone/config.rb', line 12

def configure
  yield(self)
end