module WOTC::Client::Companies
Defines methods related to companies
Public Instance Methods
current_company()
click to toggle source
Get the info of company
# File lib/wotc/client/companies.rb, line 25 def current_company result = get('user').body result["company"] end
get_company_settings(company_id=nil)
click to toggle source
Get company settings, if there are no settings saved, anempty response if given.
# File lib/wotc/client/companies.rb, line 7 def get_company_settings(company_id=nil) if company_id.nil? get("company/settings") else get("company/settings/?company_id=#{company_id}") end end
update_company_settings(company_id=nil, options={})
click to toggle source
Update company settings
# File lib/wotc/client/companies.rb, line 16 def update_company_settings(company_id=nil, options={}) if company_id.nil? put("company/settings", options) else put("company/settings?company_id=#{company_id}", options) end end