Class: Lago::Api::Resources::Organization
- Inherits:
-
Base
- Object
- Base
- Lago::Api::Resources::Organization
show all
- Defined in:
- lib/lago/api/resources/organization.rb
Instance Attribute Summary
Attributes inherited from Base
#client
Instance Method Summary
collapse
Methods inherited from Base
#create, #delete, #destroy, #get, #get_all, #initialize, #update
Instance Method Details
#api_resource ⇒ Object
7
8
9
|
# File 'lib/lago/api/resources/organization.rb', line 7
def api_resource
'organizations'
end
|
#root_name ⇒ Object
11
12
13
|
# File 'lib/lago/api/resources/organization.rb', line 11
def root_name
'organization'
end
|
#whitelist_params(params) ⇒ Object
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# File 'lib/lago/api/resources/organization.rb', line 15
def whitelist_params(params)
{
root_name => {
webhook_url: params[:webhook_url],
vat_rate: params[:vat_rate],
country: params[:country],
address_line1: params[:address_line1],
address_line2: params[:address_line2],
state: params[:state],
zipcode: params[:zipcode],
email: params[:email],
city: params[:city],
legal_name: params[:legal_name],
legal_number: params[:legal_number],
invoice_footer: params[:invoice_footer]
}.compact
}
end
|