# File lib/docker/event.rb, line 7 def initialize(status, id, from, time) @status, @id, @from, @time = status, id, from, time end
# File lib/docker/event.rb, line 29 def new_event(body, remaining, total) return if body.nil? || body.empty? json = Docker::Util.parse_json(body) Docker::Event.new( json['status'], json['id'], json['from'], json['time'] ) end
Generated with the Darkfish Rdoc Generator 2.