Class: Pluggy::Resources::ConnectorCredential
- Inherits:
-
APIResource
- Object
- PluggyObject
- APIResource
- Pluggy::Resources::ConnectorCredential
- Defined in:
- lib/pluggy/resources/connector.rb
Overview
One input the Connect Widget (or POST /items) must supply. name is the
key to send in the parameters map.
Constant Summary
Constants inherited from PluggyObject
PluggyObject::ISO8601, PluggyObject::RESERVED, PluggyObject::TEMPORAL_KEYS
Instance Attribute Summary
Attributes inherited from PluggyObject
Instance Method Summary collapse
Methods inherited from PluggyObject
#==, #[], #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
Constructor Details
This class inherits a constructor from Pluggy::PluggyObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Pluggy::PluggyObject
Instance Method Details
#image? ⇒ Boolean
18 |
# File 'lib/pluggy/resources/connector.rb', line 18 def image? = self["type"] == "image" |
#mfa? ⇒ Boolean
16 |
# File 'lib/pluggy/resources/connector.rb', line 16 def mfa? = self["mfa"] == true |
#password? ⇒ Boolean
19 |
# File 'lib/pluggy/resources/connector.rb', line 19 def password? = self["type"] == "password" |
#select? ⇒ Boolean
17 |
# File 'lib/pluggy/resources/connector.rb', line 17 def select? = self["type"] == "select" |
#valid?(value) ⇒ Boolean
21 22 23 24 25 26 27 28 |
# File 'lib/pluggy/resources/connector.rb', line 21 def valid?(value) pattern = self["validation"] return true if pattern.nil? || pattern.empty? Regexp.new(pattern).match?(value.to_s) rescue RegexpError true end |