Class: SantanderChile::ApiClient::ProductsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/santander_chile/api_client/resources/products.rb

Constant Summary collapse

DIG_RESPONSE =
["DATA", "OUTPUT", "MATRICES", "MATRIZCAPTACIONES", "e1"]

Constants included from Template

Template::TEMPLATES

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Methods included from Template

#with_template

Constructor Details

This class inherits a constructor from SantanderChile::ApiClient::Resource

Instance Method Details

#list(**params) ⇒ Object



6
7
8
9
# File 'lib/santander_chile/api_client/resources/products.rb', line 6

def list(**params)
  response = post_request("CruceProductoOnline", body: body_builder)
  Collection.from_response(response, dig_keys: DIG_RESPONSE, type: )
end