Class: Lago::Api::Resources::Customers::Wallets

Inherits:
Nested
  • Object
show all
Defined in:
lib/lago/api/resources/customers/wallets.rb,
lib/lago/api/resources/customers/wallets/base.rb,
lib/lago/api/resources/customers/wallets/alert.rb,
lib/lago/api/resources/customers/wallets/metadata.rb,
lib/lago/api/resources/customers/wallets/whitelist_params.rb

Defined Under Namespace

Classes: Alert, Base, Metadata, WhitelistParams

Instance Attribute Summary

Attributes inherited from Base

#client

Instance Method Summary collapse

Methods inherited from Nested

#create, #destroy, #get, #get_all, #initialize, #update

Methods inherited from Base

#create, #destroy, #get, #get_all, #initialize, #update

Constructor Details

This class inherits a constructor from Lago::Api::Resources::Nested

Instance Method Details

#alertsObject



23
24
25
# File 'lib/lago/api/resources/customers/wallets.rb', line 23

def alerts
  Wallets::Alert.new(client)
end

#api_resource(customer_id) ⇒ Object



11
12
13
# File 'lib/lago/api/resources/customers/wallets.rb', line 11

def api_resource(customer_id)
  "#{client.base_api_url}customers/#{customer_id}/wallets"
end

#metadataObject



27
28
29
# File 'lib/lago/api/resources/customers/wallets.rb', line 27

def 
  Wallets::Metadata.new(client)
end

#root_nameObject



15
16
17
# File 'lib/lago/api/resources/customers/wallets.rb', line 15

def root_name
  'wallet'
end

#whitelist_params(params) ⇒ Object



19
20
21
# File 'lib/lago/api/resources/customers/wallets.rb', line 19

def whitelist_params(params)
  Wallets::WhitelistParams.new.wallet(params)
end