Class: Fog::Compute::Ovirt::Mock
- Inherits:
-
Object
- Object
- Fog::Compute::Ovirt::Mock
- Defined in:
- lib/fog/ovirt/compute.rb
Overview
rubocop:enable Style/MethodMissing
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
-
#method_missing(symbol, *args) ⇒ Object
rubocop:disable Style/MethodMissing.
- #respond_to?(symbol, include_all = false) ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
68 69 70 71 |
# File 'lib/fog/ovirt/compute.rb', line 68 def initialize( = {}) Fog::Compute::Ovirt::V3::Mock.send(:include, Fog::Compute::Ovirt::Collections) @client = Fog::Compute::Ovirt::V3::Mock.new() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args) ⇒ Object
rubocop:disable Style/MethodMissing
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 |