Class: Cb::Clients::JobBranding
- Defined in:
- lib/cb/clients/job_branding.rb
Class Method Summary collapse
Methods inherited from Base
Class Method Details
.find_by_id(id) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/cb/clients/job_branding.rb', line 15 def self.find_by_id(id) json_hash = cb_client.cb_get Cb.configuration.uri_job_branding, query: { id: id } if json_hash.key? 'Branding' branding = Models::JobBranding.new json_hash['Branding'] cb_client.append_api_responses(branding, json_hash['Branding']) end cb_client.append_api_responses(branding, json_hash) end |