diff --git a/lib/fog/model.rb b/lib/fog/model.rb index 95aa136e1..116ef3d66 100644 --- a/lib/fog/model.rb +++ b/lib/fog/model.rb @@ -5,6 +5,14 @@ module Fog new(Marshal.load(marshalled)) end + def self.aliases + @aliases ||= {} + end + + def self.attributes + @attributes ||= [] + end + def self.attribute(name, other_names = []) class_eval <<-EOS, __FILE__, __LINE__ attr_accessor :#{name} @@ -21,14 +29,6 @@ module Fog self.attribute(name, other_names) end - def self.aliases - @aliases ||= {} - end - - def self.attributes - @attributes ||= [] - end - def _dump Marshal.dump(attributes) end