lib/recurly/resource.rb in recurly-2.0.9 vs lib/recurly/resource.rb in recurly-2.0.10

- old
+ new

@@ -843,9 +843,35 @@ def == other other.is_a?(self.class) && other.to_s == to_s end + def marshal_dump + [ + @attributes.reject { |k, v| v.is_a? Proc }, + @new_record, + @destroyed, + @uri, + @href, + changed_attributes, + previous_changes, + etag, + response + ] + end + + def marshal_load serialization + @attributes, + @new_record, + @destroyed, + @uri, + @href, + @changed_attributes, + @previous_changes, + @response, + @etag = serialization + end + # @return [String] def inspect attributes = self.class.attribute_names.to_a string = "#<#{self.class}" string << "##@type" if instance_variable_defined? :@type attributes += %w(errors) if errors.any?