Class: BS2::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



124
125
126
# File 'lib/bs2.rb', line 124

def api_key
  @api_key
end

#api_secretObject

Returns the value of attribute api_secret.



124
125
126
# File 'lib/bs2.rb', line 124

def api_secret
  @api_secret
end

#envObject

Returns the value of attribute env.



124
125
126
# File 'lib/bs2.rb', line 124

def env
  @env
end

#loggerObject

Returns the value of attribute logger.



124
125
126
# File 'lib/bs2.rb', line 124

def logger
  @logger
end

#passwordObject

Returns the value of attribute password.



124
125
126
# File 'lib/bs2.rb', line 124

def password
  @password
end

#usernameObject

Returns the value of attribute username.



124
125
126
# File 'lib/bs2.rb', line 124

def username
  @username
end

Instance Method Details

#endpointObject



130
131
132
# File 'lib/bs2.rb', line 130

def endpoint
  BS2::ENV_URL.fetch(env.to_sym)
end