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

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

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


21
22
23
# File 'lib/vagrant-skytap/api/specified_attributes.rb', line 21

def self.included(base)
  base.singleton_class.send(:include, ClassMethods)
end

Instance Method Details

#get_api_attribute(name) ⇒ Object


17
18
19
# File 'lib/vagrant-skytap/api/specified_attributes.rb', line 17

def get_api_attribute(name)
  attrs.fetch(name.to_s, nil)
end