Module: Formi9::Client::Services
- Included in:
- Formi9::Client
- Defined in:
- lib/formi9/client/services.rb
Overview
Defines methods related to Services
Instance Method Summary collapse
-
#create_company_service(company_id, service_name) ⇒ Object
Add a service for a company.
-
#get_company_services(company_id) ⇒ Object
Get all services of a company.
Instance Method Details
#create_company_service(company_id, service_name) ⇒ Object
Add a service for a company
6 7 8 |
# File 'lib/formi9/client/services.rb', line 6 def create_company_service(company_id, service_name) post("companies/#{company_id}/services/#{service_name}") end |
#get_company_services(company_id) ⇒ Object
Get all services of a company.
11 12 13 |
# File 'lib/formi9/client/services.rb', line 11 def get_company_services(company_id) get("companies/#{company_id}/services").body end |