Class: Pluggy::Resources::CreditData

Inherits:
APIResource show all
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

#client

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

Returns:

  • (Boolean)


40
# File 'lib/pluggy/resources/account.rb', line 40

def active? = self["status"] == "ACTIVE"

#blocked?Boolean

Returns:

  • (Boolean)


41
# File 'lib/pluggy/resources/account.rb', line 41

def blocked? = self["status"] == "BLOCKED"

#cancelled?Boolean

Returns:

  • (Boolean)


42
# File 'lib/pluggy/resources/account.rb', line 42

def cancelled? = self["status"] == "CANCELLED"

#main_holder?Boolean

Returns:

  • (Boolean)


43
# File 'lib/pluggy/resources/account.rb', line 43

def main_holder? = self["holderType"] == "MAIN"