module Fog::Proxmox::Attributes

module Attributes mixins

Public Class Methods

set_attr(attr_name, attributes, new_attributes) click to toggle source
# File lib/fog/proxmox/attributes.rb, line 23
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) click to toggle source
# File lib/fog/proxmox/attributes.rb, line 26
def self.set_attr_and_sym(attr_name, attributes, new_attributes)
  self.set_attr(attr_name, attributes, new_attributes)
  self.set_attr(attr_name.to_sym, attributes, new_attributes)
end