Class: HipcallSdk::CompanyResource
Instance Attribute Summary
Attributes inherited from Resource
#client
Instance Method Summary
collapse
Methods inherited from Resource
#initialize
Instance Method Details
12
13
14
15
|
# File 'lib/hipcall/resources/companies.rb', line 12
def (company_id:, **attributes)
response = post_request("companies/#{company_id}/comments", body: attributes)
Comment.new response.body.dig("data")
end
|
3
4
5
6
|
# File 'lib/hipcall/resources/companies.rb', line 3
def create_tags(company_id:, **attributes)
response = post_request("companies/#{company_id}/tags", body: attributes)
Collection.from_response(response, key: "data", type: Tag)
end
|
8
9
10
|
# File 'lib/hipcall/resources/companies.rb', line 8
def delete_tags(company_id:, tag_id:)
delete_request("companies/#{company_id}/tags/#{tag_id}")
end
|