Class: Cb::JobBrandingApi
- Inherits:
-
Object
- Object
- Cb::JobBrandingApi
- Defined in:
- lib/cb/clients/job_branding_api.rb
Class Method Summary collapse
Class Method Details
.find_by_id(id) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/cb/clients/job_branding_api.rb', line 7 def self.find_by_id id my_api = Cb::Utils::Api.new cb_response = my_api.cb_get Cb.configuration.uri_job_branding, :query => { :id => id } xml_hash = Nori.new.parse cb_response.response.body return CbJobBranding.new xml_hash['Branding'] end |