Sha256: d1f439adc468b269ce28c51694b91cd88098c0a432034f8363038ca670c241a1
Contents?: true
Size: 579 Bytes
Versions: 39
Compression:
Stored size: 579 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' => (data[:quota_updated] || data[:quota]).merge('id' => tenant_id) } response end end end end end
Version data entries
39 entries across 37 versions & 3 rubygems