Class: Increase::Resources::CardPurchaseSupplements
- Inherits:
-
Object
- Object
- Increase::Resources::CardPurchaseSupplements
- Defined in:
- lib/increase/resources/card_purchase_supplements.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ CardPurchaseSupplements
constructor
A new instance of CardPurchaseSupplements.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::CardPurchaseSupplement>
List Card Purchase Supplements.
-
#retrieve(card_purchase_supplement_id, opts = {}) ⇒ Increase::Models::CardPurchaseSupplement
Retrieve a Card Purchase Supplement.
Constructor Details
#initialize(client:) ⇒ CardPurchaseSupplements
Returns a new instance of CardPurchaseSupplements.
6 7 8 |
# File 'lib/increase/resources/card_purchase_supplements.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::CardPurchaseSupplement>
List Card Purchase Supplements
37 38 39 40 41 42 43 44 45 |
# File 'lib/increase/resources/card_purchase_supplements.rb', line 37 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/card_purchase_supplements" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::CardPurchaseSupplement @client.request(req, opts) end |
#retrieve(card_purchase_supplement_id, opts = {}) ⇒ Increase::Models::CardPurchaseSupplement
Retrieve a Card Purchase Supplement
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/card_purchase_supplements.rb', line 16 def retrieve(card_purchase_supplement_id, opts = {}) req = {} req[:method] = :get req[:path] = "/card_purchase_supplements/#{card_purchase_supplement_id}" req[:model] = Increase::Models::CardPurchaseSupplement @client.request(req, opts) end |