Module: VagrantPlugins::Skytap::API::SpecifiedAttributes::ClassMethods

Defined in:
lib/vagrant-skytap/api/specified_attributes.rb

Instance Method Summary collapse

Instance Method Details

#reads(*names) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/vagrant-skytap/api/specified_attributes.rb', line 28

def reads(*names)
  @readables ||= []

  names.each do |name|
    define_method(name) do
      get_api_attribute(name.to_s)
    end
  end
end