The namespace for all the things Plaid.

The Plaid namespace.

Sections
Namespace
Methods
C
R
Constants
VERSION = '13.2.0'.freeze
 
API_VERSION = '2020-09-14'.freeze
 
Class Public methods
relaxed_models=(value)

Sets value for relaxed_models.

# File lib/plaid.rb, line 51
def relaxed_models=(value)
  @relaxed_models = value
end
relaxed_models?()

Get relaxed models state.

We support two modes for parsing response bodies.

Strict mode: Unknown attributes will cause NoMethodError.

Relaxed mode (default): If a response contains an unknown attribute, it won't cause any error and will be accessible using brackets notation: `response`.

Returns

Returns truey value for relaxed mode and falsey for strict.

# File lib/plaid.rb, line 42
def relaxed_models?
  if defined?(@relaxed_models)
    @relaxed_models
  else
    true
  end
end
Public
Internal
Class Public methods
convert_to_date_string(date)

Converts date objects to strings if needed.

Takes in a string or a Date object and performs necessary operations to return a string representation of the Date.

date

Date in Date object form or string form (YYYY-MM-DD).

Returns

Returns a String with an ISO-8601 date.

# File lib/plaid.rb, line 65
def self.convert_to_date_string(date)
  date.is_a?(String) ? date : date.to_date.strftime('%Y-%m-%d')
end