lib/yoti/configuration.rb in yoti-1.0.2 vs lib/yoti/configuration.rb in yoti-1.0.3

- old
+ new

@@ -1,15 +1,16 @@ module Yoti class Configuration - attr_accessor :client_sdk_id, :key_file_path, :key, :api_url, - :api_port, :api_version, :api_endpoint + attr_accessor :client_sdk_id, :key_file_path, :key, :sdk_identifier, + :api_url, :api_port, :api_version, :api_endpoint # Set config variables by using a configuration block def initialize @client_sdk_id = '' @key_file_path = '' @key = '' + @sdk_identifier = 'Ruby' @api_url = 'https://api.yoti.com' @api_port = 443 @api_version = 'v1' end @@ -19,11 +20,11 @@ end # Validates the configuration values set in instance variables # @return [nil] def validate - validate_required_all(%w(client_sdk_id)) - validate_required_any(%w(key_file_path key)) + validate_required_all(%w[client_sdk_id]) + validate_required_any(%w[key_file_path key]) validate_value('api_version', ['v1']) end private