Sha256: d4f5943fc497ed8709dcc0e4c765dff07b9b5d16bfcdfa696b48e779f753b484
Contents?: true
Size: 594 Bytes
Versions: 40
Compression:
Stored size: 594 Bytes
Contents
module Fog module Compute class OpenStack 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' => (self.data[:quota_updated] or self.data[:quota]).merge({'id' => tenant_id}) } response end end end end end
Version data entries
40 entries across 40 versions & 5 rubygems