Module: Fog::Proxmox::Attributes
- Defined in:
- lib/fog/proxmox/attributes.rb
Overview
module Attributes mixins
Class Method Summary collapse
- .set_attr(attr_name, attributes, new_attributes) ⇒ Object
- .set_attr_and_sym(attr_name, attributes, new_attributes) ⇒ Object
Class Method Details
.set_attr(attr_name, attributes, new_attributes) ⇒ Object
24 25 26 |
# File 'lib/fog/proxmox/attributes.rb', line 24 def self.set_attr(attr_name, attributes, new_attributes) attributes[attr_name.to_sym] = new_attributes[attr_name] unless new_attributes[attr_name].nil? end |
.set_attr_and_sym(attr_name, attributes, new_attributes) ⇒ Object
28 29 30 31 |
# File 'lib/fog/proxmox/attributes.rb', line 28 def self.set_attr_and_sym(attr_name, attributes, new_attributes) set_attr(attr_name, attributes, new_attributes) set_attr(attr_name.to_sym, attributes, new_attributes) end |