Sha256: 154655367c4e61a7bc937e97a9cf83d641450aac6b4a1862722315b5e50b089a
Contents?: true
Size: 1.87 KB
Versions: 1
Compression:
Stored size: 1.87 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/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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plaid-6.0.0 | lib/plaid.rb |