Class: Fog::Compute::Ovirt::Real
- Inherits:
-
Object
- Object
- Fog::Compute::Ovirt::Real
- Defined in:
- lib/fog/ovirt/compute.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Real
constructor
A new instance of Real.
-
#method_missing(symbol, *args) ⇒ Object
rubocop:disable Style/MethodMissingSuper, Style/MissingRespondToMissing.
- #respond_to?(symbol, include_all = false) ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Real
Returns a new instance of Real.
101 102 103 104 105 106 107 108 109 |
# File 'lib/fog/ovirt/compute.rb', line 101 def initialize( = {}) if [:api_version] == "v4" Fog::Compute::Ovirt::V4::Real.send(:include, Fog::Compute::Ovirt::Collections) @client = Fog::Compute::Ovirt::V4::Real.new() else Fog::Compute::Ovirt::V3::Real.send(:include, Fog::Compute::Ovirt::Collections) @client = Fog::Compute::Ovirt::V3::Real.new() end end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(symbol, *args) ⇒ Object
rubocop:disable Style/MethodMissingSuper, Style/MissingRespondToMissing
112 113 114 |
# File 'lib/fog/ovirt/compute.rb', line 112 def method_missing(symbol, *args) @client.send(symbol, *args) end |
Instance Method Details
#respond_to?(symbol, include_all = false) ⇒ Boolean
116 117 118 |
# File 'lib/fog/ovirt/compute.rb', line 116 def respond_to?(symbol, include_all = false) @client.respond_to?(symbol, include_all) end |