lib/libgss/action_request.rb in libgss-0.0.1 vs lib/libgss/action_request.rb in libgss-0.0.2
- old
+ new
@@ -28,9 +28,15 @@
@status = STATUS_PREPARING
@actions = []
@action_id = 0;
end
+ def inspect
+ r = "#<#{self.class.name}:#{self.object_id} "
+ fields = (instance_variables - [:@httpclient]).map{|f| "#{f}=#{instance_variable_get(f).inspect}"}
+ r << fields.join(", ") << ">"
+ end
+
def next_action_id
@action_id += 1
end
def add_action(hash)