Sha256: 2bec6edeab23c2a0ea4ffef4918c99613a4ac4168cd0db9c75b0e7ccce5a6222
Contents?: true
Size: 896 Bytes
Versions: 15
Compression:
Stored size: 896 Bytes
Contents
module Fog module Compute class Ovirt class V3 module Shared def check_arguments(id, options) raise ArgumentError, "instance id is a required parameter" unless id raise ArgumentError, "interface id is a required parameter for update-interface" unless options.key? :id end end class Real extend ::Fog::Compute::Ovirt::V3::Shared def update_interface(id, options) check_arguments(id, options) interface_id = options[:id] options.delete(:id) client.update_interface(id, interface_id, options) end end class Mock extend ::Fog::Compute::Ovirt::V3::Shared def update_interface(id, options) check_arguments(id, options) true end end end end end end
Version data entries
15 entries across 13 versions & 2 rubygems