Class: BridgeBankin::Insight

Inherits:
BridgeObject show all
Extended by:
API::Resource
Defined in:
lib/bridge_bankin/insight.rb

Overview

Insight resource

Constant Summary

Constants inherited from BridgeObject

BridgeObject::HIDDEN_ATTRIBUTES

Class Method Summary collapse

Methods inherited from BridgeObject

#==, convert_to_bridge_object, #initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from BridgeBankin::BridgeObject

Class Method Details

.categories_insights(access_token:, **params) ⇒ Insight

Categories statistics provided by Bridge

Parameters:

  • access_token (String)

    the access token provided during the user authentication

  • params (Hash)

    any params that might be required (or optional) to communicate with the API

Returns:

  • (Insight)

    the statistics generated by Bridge API



19
20
21
22
23
24
# File 'lib/bridge_bankin/insight.rb', line 19

def categories_insights(access_token:, **params)
  protected_resource(access_token) do
    data = api_client.get("/v2/insights/category", **params)
    convert_to_bridge_object(**data)
  end
end