Sha256: 4e3f5e6b8fb532dd45b0760431f4ebadd92551ba494c91e63cbfd66a295668d7
Contents?: true
Size: 579 Bytes
Versions: 20
Compression:
Stored size: 579 Bytes
Contents
module Fog module OpenStack class Compute 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
20 entries across 20 versions & 3 rubygems