You can set the organization or company that is accessing a particular API using the set_company() function. By doing so, you can analyze how your Ruby API is being used.

Compatibility

Compatible with all Ruby agent versions.

Syntax

set_company(company_object)

Parameter

Parameter Type Description
company_object Company Object (Required) An object representing the Company. It contains id (mandatory)

Example

copy
icon/buttons/copy
# As of now, company properties only support id. Id must be an string.
Company = Struct.new(:id)
current_company = Company.new('Google')
Atatus.set_company(current_company)