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.



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

def api_key
  @api_key
end

#api_secretObject

Returns the value of attribute api_secret.



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

def api_secret
  @api_secret
end

#envObject

Returns the value of attribute env.



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

def env
  @env
end

#loggerObject

Returns the value of attribute logger.



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

def logger
  @logger
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

Instance Method Details

#endpointObject



135
136
137
# File 'lib/bs2.rb', line 135

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