Class: Lago::Api::Resources::Customers::Wallets
- Inherits:
-
Nested
- Object
- Base
- Nested
- Lago::Api::Resources::Customers::Wallets
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
Instance Method Details
#alerts ⇒ Object
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
|
27
28
29
|
# File 'lib/lago/api/resources/customers/wallets.rb', line 27
def metadata
Wallets::Metadata.new(client)
end
|
#root_name ⇒ Object
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
|