Class: Fog::Ovirt::Compute::Mock
- Inherits:
-
Object
- Object
- Fog::Ovirt::Compute::Mock
- Defined in:
- lib/fog/ovirt/compute.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #method_missing(symbol, *args) ⇒ Object
- #respond_to?(symbol, include_all = false) ⇒ Boolean
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( = {}) Fog::Ovirt::Compute::V4::Mock.include Fog::Ovirt::Compute::Collections @client = Fog::Ovirt::Compute::V4::Mock.new() 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
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 |