Class: DIDWW::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/DIDWW/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Configuration

Returns a new instance of Configuration.



5
6
7
8
9
# File 'lib/DIDWW/configuration.rb', line 5

def initialize(params = {})
  @api_username = params[:api_username]
  @api_key = params[:api_key]
  @sandbox = params[:sandbox] || true
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/DIDWW/configuration.rb', line 3

def api_key
  @api_key
end

#api_usernameObject

Returns the value of attribute api_username.



3
4
5
# File 'lib/DIDWW/configuration.rb', line 3

def api_username
  @api_username
end

#sandboxObject

Returns the value of attribute sandbox.



3
4
5
# File 'lib/DIDWW/configuration.rb', line 3

def sandbox
  @sandbox
end