lib/duracloud/content.rb in duracloud-client-0.6.0 vs lib/duracloud/content.rb in duracloud-client-0.7.0
- old
+ new
@@ -44,11 +44,11 @@
def self.create(**kwargs)
new(**kwargs).save
end
attr_accessor :space_id, :content_id, :store_id,
- :body, :md5, :content_type, :size
+ :body, :md5, :content_type, :size, :modified
alias_method :id, :content_id
validates_presence_of :space_id, :content_id
# Return the space associated with this content.
# @return [Duracloud::Space] the space.
@@ -166,9 +166,10 @@
self.md5 = response.md5
end
self.properties = response.headers
self.content_type = response.content_type
self.size = response.size
+ self.modified = response.modified
end
def do_delete
Client.delete_content(*args, **query)
end