Class: Pluggy::Resources::CreditData
- Inherits:
-
APIResource
- Object
- PluggyObject
- APIResource
- Pluggy::Resources::CreditData
- Defined in:
- lib/pluggy/resources/account.rb
Overview
Populated when type == "CREDIT".
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
#active? ⇒ Boolean
40 |
# File 'lib/pluggy/resources/account.rb', line 40 def active? = self["status"] == "ACTIVE" |
#blocked? ⇒ Boolean
41 |
# File 'lib/pluggy/resources/account.rb', line 41 def blocked? = self["status"] == "BLOCKED" |
#cancelled? ⇒ Boolean
42 |
# File 'lib/pluggy/resources/account.rb', line 42 def cancelled? = self["status"] == "CANCELLED" |
#main_holder? ⇒ Boolean
43 |
# File 'lib/pluggy/resources/account.rb', line 43 def main_holder? = self["holderType"] == "MAIN" |