Sha256: 58bb188e5dc8c78a2ba770febd474a4676137243ca9370ebeab9f076a163c0ba
Contents?: true
Size: 581 Bytes
Versions: 4
Compression:
Stored size: 581 Bytes
Contents
module Fog module Compute class HuaweiCloud class Real def get_quota(tenant_id) request( :expects => 200, :method => 'GET', :path => "/os-quota-sets/#{tenant_id}" ) end end class Mock def get_quota(tenant_id) response = Excon::Response.new response.status = 200 response.body = { 'quota_set' => (data[:quota_updated] || data[:quota]).merge('id' => tenant_id) } response end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems