Sha256: d262e47d12155f6de65f3da4a005a23d59471b05658503d4ac1f4ea33ba3c098
Contents?: true
Size: 1.92 KB
Versions: 6
Compression:
Stored size: 1.92 KB
Contents
require 'faraday' require 'faraday_middleware' require_relative 'plaid/middleware' require_relative 'plaid/products/base_product' require_relative 'plaid/errors' require_relative 'plaid/version' require_relative 'plaid/models' require_relative 'plaid/products/accounts' require_relative 'plaid/products/asset_report' require_relative 'plaid/products/auth' require_relative 'plaid/products/categories' require_relative 'plaid/products/credit_details' require_relative 'plaid/products/identity' require_relative 'plaid/products/income' require_relative 'plaid/products/institutions' require_relative 'plaid/products/item' require_relative 'plaid/products/processor' require_relative 'plaid/products/sandbox' require_relative 'plaid/products/transactions' require_relative 'plaid/client' # Public: The namespace for all the things Plaid. module Plaid # Public: Get relaxed models state. # # We support two modes for parsing response bodies. # # Strict mode (default). Unknown attributes will cause NoMethodError. # # Relaxed mode. If a response contains an unknown # attribute, it won't cause any error and will be accessible # using brackets notation: `response['unknown_attribute']`. # # Returns truey value for relaxed mode and falsey for strict. def relaxed_models? if defined?(@relaxed_models) @relaxed_models else true end end # Public: Sets value for relaxed_models. def relaxed_models=(value) @relaxed_models = value end module_function :relaxed_models?, :relaxed_models= # Internal: 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 a String with an ISO-8601 date. def self.convert_to_date_string(date) date.is_a?(String) ? date : date.to_date.strftime('%Y-%m-%d') end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
plaid-6.3.1 | lib/plaid.rb |
plaid-7.0.0.rc0 | lib/plaid.rb |
plaid-6.3.0 | lib/plaid.rb |
plaid-6.2.1 | lib/plaid.rb |
plaid-6.2.0 | lib/plaid.rb |
plaid-6.1.0 | lib/plaid.rb |