lib/serially/serially.rb
def instance_id
      if self.respond_to?(:id)
        self.id
      else
        raise Serially::ArgumentError.new("Serially: default implementation of ::instance_id is not defined for plain Ruby class, please provide one")
      end
    end
# override this to provide a custom way of fetching id of your class' instance
override this to provide a custom way of fetching id of your class' instance
override this to provide a custom way of fetching id of your class ' instance
def instance_id
      if self.respond_to?(:id)
        self.id
      else
        raise Serially::ArgumentError.new("Serially: default implementation of ::instance_id is not defined for plain Ruby class, please provide one")
      end
    end
def instance_id if self . respond_to? ( :id ) self . id else raise Serially :: ArgumentError . new ( "Serially: default implementation of ::instance_id is not defined for plain Ruby class, please provide one" ) end end
override this to provide a custom way of fetching id of your class' instance
override this to provide a custom way of fetching id of your class ' instance