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