lib/bitmovin/resource.rb in bitmovin-ruby-0.2.0 vs lib/bitmovin/resource.rb in bitmovin-ruby-0.3.0
- old
+ new
@@ -36,9 +36,10 @@
response = Bitmovin.client.post do |post|
post.url self.class.resource_path
post.body = collect_attributes
end
+ yield(response.body) if block_given?
init_from_hash(result(response))
self
end
def persisted?