Class: NeonApi::Configuration

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

Overview

Configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject

Returns the value of attribute client.



18
19
20
# File 'lib/neon_api/configuration.rb', line 18

def client
  @client
end

#decrypt_pemObject

Returns the value of attribute decrypt_pem.



18
19
20
# File 'lib/neon_api/configuration.rb', line 18

def decrypt_pem
  @decrypt_pem
end

#encrypt_pemObject

Returns the value of attribute encrypt_pem.



18
19
20
# File 'lib/neon_api/configuration.rb', line 18

def encrypt_pem
  @encrypt_pem
end

#environmentObject

Returns the value of attribute environment.



18
19
20
# File 'lib/neon_api/configuration.rb', line 18

def environment
  @environment
end

#passwordObject

Returns the value of attribute password.



18
19
20
# File 'lib/neon_api/configuration.rb', line 18

def password
  @password
end

#proxyObject

Returns the value of attribute proxy.



18
19
20
# File 'lib/neon_api/configuration.rb', line 18

def proxy
  @proxy
end

#tokenObject

Returns the value of attribute token.



18
19
20
# File 'lib/neon_api/configuration.rb', line 18

def token
  @token
end

#usernameObject

Returns the value of attribute username.



18
19
20
# File 'lib/neon_api/configuration.rb', line 18

def username
  @username
end

Instance Method Details

#client_setupObject



20
21
22
# File 'lib/neon_api/configuration.rb', line 20

def client_setup
  @client ||= Client.new(environment, token, username, password, encrypt_pem, decrypt_pem, proxy)
end