Class: ThePlaidApi::Server

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

Overview

An enum for API servers.

Constant Summary collapse

SERVER =
[
  DEFAULT = 'default'.freeze
].freeze

Class Method Summary collapse

Class Method Details

.from_value(value, default_value = DEFAULT) ⇒ Object

Converts a string or symbol into a valid Server constant.



37
38
39
40
41
# File 'lib/the_plaid_api/configuration.rb', line 37

def self.from_value(value, default_value = DEFAULT)
  return default_value if value.nil?

  default_value
end