# File lib/fog/softlayer/requests/account/get_brand.rb, line 15 def get_brand(identifier) response = Excon::Response.new response.body = @brands.select {|brand| brand[:id] == identifier.to_i }.first || {} response.status = response.body.empty? ? 404 : 200 if response.status == 404 response.body = { "error" => "Unable to find object with id of '#{identifier}'.", "code"=>"SoftLayer_Exception_ObjectNotFound" } end response end