Class: Fog::Ovirt::Compute::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/ovirt/compute.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



69
70
71
72
# File 'lib/fog/ovirt/compute.rb', line 69

def initialize(options = {})
  Fog::Ovirt::Compute::V4::Mock.include Fog::Ovirt::Compute::Collections
  @client = Fog::Ovirt::Compute::V4::Mock.new(options)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(symbol, *args) ⇒ Object



74
75
76
# File 'lib/fog/ovirt/compute.rb', line 74

def method_missing(symbol, *args)
  @client.__send__(symbol, *args)
end

Instance Method Details

#respond_to?(symbol, include_all = false) ⇒ Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/fog/ovirt/compute.rb', line 78

def respond_to?(symbol, include_all = false)
  @client.respond_to?(symbol, include_all)
end