Class: Pluggy::Resources::Connector
Constant Summary
Constants inherited
from PluggyObject
PluggyObject::ISO8601, PluggyObject::RESERVED, PluggyObject::TEMPORAL_KEYS
Instance Attribute Summary
Attributes inherited from PluggyObject
#client
Instance Method Summary
collapse
#==, #[], #as_json, declared_fields, define_field, #each_pair, fields, #hash, #initialize, #inspect, #key?, #keys, #method_missing, nested, nested_types, #read, #respond_to_missing?, #to_h, #to_json, #values
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Pluggy::PluggyObject
Instance Method Details
#credential_names ⇒ Object
67
|
# File 'lib/pluggy/resources/connector.rb', line 67
def credential_names = (credentials || []).map { |c| c["name"] }
|
#mfa? ⇒ Boolean
58
|
# File 'lib/pluggy/resources/connector.rb', line 58
def mfa? = self["hasMFA"] == true
|
#oauth? ⇒ Boolean
59
|
# File 'lib/pluggy/resources/connector.rb', line 59
def oauth? = self["oauth"] == true
|
#open_finance? ⇒ Boolean
61
|
# File 'lib/pluggy/resources/connector.rb', line 61
def open_finance? = self["isOpenFinance"] == true
|
#sandbox? ⇒ Boolean
60
|
# File 'lib/pluggy/resources/connector.rb', line 60
def sandbox? = self["isSandbox"] == true
|
#supports?(product) ⇒ Boolean
63
64
65
|
# File 'lib/pluggy/resources/connector.rb', line 63
def supports?(product)
(self["products"] || []).include?(product.to_s.upcase)
end
|