Class: Fog::Compute::Ovirt::Real

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

Instance Method Summary collapse

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(options = {})
  if options[:api_version] == "v4"
    Fog::Compute::Ovirt::V4::Real.send(:include, Fog::Compute::Ovirt::Collections)
    @client = Fog::Compute::Ovirt::V4::Real.new(options)
  else
    Fog::Compute::Ovirt::V3::Real.send(:include, Fog::Compute::Ovirt::Collections)
    @client = Fog::Compute::Ovirt::V3::Real.new(options)
  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

Returns:

  • (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