Class: Alegra::Company
Instance Attribute Summary
Attributes inherited from Record
#client
Instance Method Summary
collapse
Methods inherited from Record
#initialize
Constructor Details
This class inherits a constructor from Alegra::Record
Instance Method Details
#find(options = { format: :formated }) ⇒ Object
3
4
5
|
# File 'lib/alegra/company.rb', line 3
def find(options = { format: :formated })
client.get('company', {}, options)
end
|
#update(params, options = { format: :formated }) ⇒ Object
7
8
9
10
|
# File 'lib/alegra/company.rb', line 7
def update(params, options = { format: :formated })
sanitize_params = params.deep_camel_case_lower_keys
client.put('company', sanitize_params, options)
end
|