Module: Creditario::Crowdfunding::Funds
- Extended by:
- API::Create, API::List, API::Retrieve
- Defined in:
- lib/creditario/repositories/crowdfunding/funds.rb
Overview
Creditario::Crowdfunding::Funds
Repositorio de Fondos, permite realizar las siguientes operaciones sobre Fondos de creditar.io
-
Obtener todos los Fondos:
result = Creditario::Crowdfunding::Funds.list => Creditario::PaginatedCollection result.items => [Creditario::Crowdfunding::Fund, Creditario::Crowdfunding::Fund, ...]
-
Obtener un Fondo en especifico:
Creditario::Crowdfunding::Funds.retrieve("2e9d05b8-2180-4779-bab6-bdfd41d1569f") => Creditario::Crowdfunding::Fund
-
Crear un Fondo:
result = Creditario::Crowdfunding::Funds.create(amount_cents: 1000000, ..., crowdfund_id: "fef6ced1-a462-4d78-af50-70528eb2986b") => Creditario::Crowdfunding::Fund
Class Method Summary collapse
-
.resource_class ⇒ Object
Clase a utilizar para transformar las respuestas de la API.
-
.resource_path ⇒ Object
Path de la API donde se ejecutan las peticiones para Fondos.
Methods included from API::List
Methods included from API::Retrieve
Methods included from API::Create
Class Method Details
.resource_class ⇒ Object
Clase a utilizar para transformar las respuestas de la API
42 43 44 |
# File 'lib/creditario/repositories/crowdfunding/funds.rb', line 42 def self.resource_class Creditario::Crowdfunding::Fund end |
.resource_path ⇒ Object
Path de la API donde se ejecutan las peticiones para Fondos.
36 37 38 |
# File 'lib/creditario/repositories/crowdfunding/funds.rb', line 36 def self.resource_path "/crowdfunding/funds" end |