Class: Pluggy::APIResource

Inherits:
PluggyObject show all
Defined in:
lib/pluggy/api_resource.rb

Overview

Base for the top-level API resources. Adds the client back-reference that makes navigation (account.transactions, bill.transactions, item.accounts) possible.

Objects built by a requestor always carry a client. Objects a caller constructs by hand do not, so ensure_client! explains that rather than letting a NoMethodError on nil surface.

Constant Summary

Constants inherited from PluggyObject

PluggyObject::ISO8601, PluggyObject::RESERVED, PluggyObject::TEMPORAL_KEYS

Instance Attribute Summary

Attributes inherited from PluggyObject

#client

Method Summary

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