lib/fog/openstack/models/compute/metadata.rb in fog-1.3.1 vs lib/fog/openstack/models/compute/metadata.rb in fog-1.4.0
- old
+ new
@@ -1,18 +1,18 @@
require 'fog/core/collection'
require 'fog/openstack/models/meta_parent'
-require 'fog/openstack/models/compute/meta'
+require 'fog/openstack/models/compute/metadatum'
require 'fog/openstack/models/compute/image'
require 'fog/openstack/models/compute/server'
module Fog
module Compute
class OpenStack
class Metadata < Fog::Collection
- model Fog::Compute::OpenStack::Meta
+ model Fog::Compute::OpenStack::Metadatum
include Fog::Compute::OpenStack::MetaParent
def all
requires :parent
@@ -50,18 +50,18 @@
private
def meta_hash(data=nil)
if data.nil?
data={}
self.each do |meta|
- if meta.is_a?(Fog::Compute::OpenStack::Meta) then
+ if meta.is_a?(Fog::Compute::OpenStack::Metadatum) then
data.store(meta.key, meta.value)
else
data.store(meta["key"], meta["value"])
end
- end
+ end
end
data
- end
+ end
end
end
end